Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ramadhanabs's avatar

Jetstream Post Register 404 in Server

Hello, i have a problem with POST "/register" method in Jetstream which is using Fortify for authentication process. On my local, it runs smoothly without problem and the response code of POST "/register" is 302, but unfortunately in server (i hosted them on web hosting from hostinger) it returns 404 response code. I check to database new user already registered. Anyone have through this problem?

0 likes
7 replies
Snapey's avatar

is it redirecting to a non-existant route? Check the URL showing with the 404

ramadhanabs's avatar

@Snapey i checked my route list and i can see route "/register" with POST method that provided by Fortify.

I tried to hit those endpoint again using same email expecting error and it returns 200 in status code, with error message.

ramadhanabs's avatar

@Snapey i'm not sure how to check if i were being redirected on code side, but by browser network console i'm not redirected to anywhere

Snapey's avatar

@ramadhanabs So you see the POST to /register and nothing else, but the browser shows 404?

Yet, the new user record is created?

Still think it can't work out where to send you next.

Nothing in the laravel log file?

ramadhanabs's avatar

@Snapey yes for the browser shows 404, and yes for the new user is created, seems weird because in my local development it runs ok and returned response 302

Please or to participate in this conversation.