POST request succeeds for pages with next dev #38863
Labels
bug
Issue was opened via the bug report template.
good first issue
Easy to fix issues, good for newcomers
linear: next
Confirmed issue that is tracked by the Next.js team.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
When you send a POST request to a page running with
next dev
, it succeeds with 200 status even though it fails with 405 status when running withnext start
Expected Behavior
Non-GET/HEAD requests fail with 405 status code in the same way with
next start
Link to reproduction
https://github.com/vercel/next.js/tree/canary/examples
To Reproduce
$ next dev # on another terminal $ curl http://localhost:3000 -X POST -v
The problem should happen on any apps.
The text was updated successfully, but these errors were encountered: