How to solve 401 unauthorized access to pgadmin4
If you try to access to pgadmin through your not default browser, probably you will see this message: Unauthorized The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required. To fix it, you need to load the key locate in ~/.pgAdmin4.startup.log Just execute the following command to get the full url: cat ~/.pgAdmin4.startup.log | grep "Server URL" | awk '{print $6}' You will see something like this url: http://127.0.0.1:35349/?key=f6e77a99-65f3-467d-8760-e289effa15ef Enjoy it!