Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How do I avoid rewritten URLS only accepting GET requests - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
6 replies
Ethernal
How do I avoid rewritten URLS only accepting GET requests
I
've recently deployed a NextJS site while using the URL Rewrites to proxy
/api/:path
/api/:path
to
api.<domain>/:path
api.<domain>/:path
, However one thing I
've noticed is that when sending
POST
POST
requests it gets swapped with a
GET
GET
request
, breaking most of the data fetching routes
(Assuming use of GraphQL
)
, How do I avoid this behavior
?
API in images is provided via Express
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How do I get Cloudflare Image resizing working with Cloudflare Pages deployment preview URLs?
CD
Cloudflare Developers / pages-help
3y ago
How Do I redirect all urls to their trailing slash equivalent?
CD
Cloudflare Developers / pages-help
3y ago
I'm incorrectly *not* getting a 404 on some fetch requests. How do I get 404s?
CD
Cloudflare Developers / pages-help
2y ago
Different requests get different files
CD
Cloudflare Developers / pages-help
3y ago