Unable To Logout Of PayloadCMS

default discord avatar
4 weeks ago

I click on logout, I get redirected to the successfully logged out page, when I click on log back in, I am taken to a page that says already logged in (Video attached of the problem).

Could this have anything to do with the nginx reverse proxy? My last question was about permissions, now I know why, since I'm not able to logout of the unauthorized user, since everything works just fine on my localhost

I am using Nginx reverse proxy for localhost:3001. I know this forum is not for server support, I just wonder if anyone else is deployed the same way, nowhere else to find payload users.

Payload version: 1.11.3

server { server_name example.com root /var/www/html/example; index index.html; location / { proxy_pass http://localhost:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }

I have managed to solve this issue as well as permissions issue by removing node_modules and reinstalling with npm i

  • default discord avatar
    2 weeks ago

    I m having the same issue not on localhost but on codespace. I tried removing node_modules but I m still having the same issue.

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.