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 requests to /api/* endpoints fail on Cloudflare Pages #1797

Closed
DataDrivenMD opened this issue Feb 19, 2023 · 2 comments
Closed

POST requests to /api/* endpoints fail on Cloudflare Pages #1797

DataDrivenMD opened this issue Feb 19, 2023 · 2 comments
Labels
c: bug Something isn't working s: pending triage Pending Triage

Comments

@DataDrivenMD
Copy link
Contributor

All non-GET requests fail when the static app is deployed to Cloudflare Pages. This is true regardless of the NITRO_PRESET value that is passed during the build. This is happening because /functions output generated by Nitro returns HTTP 405 (Method not allowed) for any POST requests.

Affects: Elk <=0.7.4

@DataDrivenMD DataDrivenMD added c: bug Something isn't working s: pending triage Pending Triage labels Feb 19, 2023
@stackblitz
Copy link

stackblitz bot commented Feb 19, 2023

Solve in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@DataDrivenMD
Copy link
Contributor Author

Closing this issue as the fix to Nitro has been merged and will be released soon. For context, see unjs/nitro#965

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: bug Something isn't working s: pending triage Pending Triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant