Can't create first First User

default discord avatar
ysione
3 months ago
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
    notchr
    3 months ago

    @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
    ysione
    3 months ago

    @notchr


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


    Nothing to do with Payload

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

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

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