Can't create first First User

default discord avatar
ysionelast year
3

We had deployed payload project, now we need another version of it on new server, but after deploy we have troubles creating first admin user, request for creating user fails with status 403.


We tried to add user manualy to database, but even

/api/user-admin/login

fails with status 403.



How can I fix it?

  • default discord avatar
    notchrlast year

    @ysione This could possibly be a CORS / CSRF issue if you're getting 403's



    Can I check out your payload config

  • default discord avatar
    ysionelast year

    @notchr


    Ah, all good, our nginx config had line that was making all requests to PUT requests


    Nothing to do with Payload

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

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