Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST request succeeds for pages with next dev #38863

Open
1 task done
nkzawa opened this issue Jul 21, 2022 · 2 comments
Open
1 task done

POST request succeeds for pages with next dev #38863

nkzawa opened this issue Jul 21, 2022 · 2 comments
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.

Comments

@nkzawa
Copy link
Contributor

nkzawa commented Jul 21, 2022

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64
Binaries:
  Node: 16.14.0
  npm: 8.12.0
  Yarn: 1.22.17
  pnpm: 7.5.2
Relevant packages:
  next: 12.2.3-canary.15
  eslint-config-next: 12.2.2
  react: 18.2.0
  react-dom: 18.2.0

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 with next 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.

@nkzawa nkzawa added the bug Issue was opened via the bug report template. label Jul 21, 2022
@jankaifer
Copy link
Contributor

Does someone want to push #38870 over the finish line?

@jankaifer jankaifer added good first issue Easy to fix issues, good for newcomers kind: bug labels Jan 18, 2023
@github-actions github-actions bot added the linear: next Confirmed issue that is tracked by the Next.js team. label Jan 18, 2023
@Tigatok
Copy link

Tigatok commented Dec 12, 2023

#38870 is now closed as stable, is this something we still want to look into? Or is this ticket still relevant without the need for that one?

@samcx samcx removed the kind: bug label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants