Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Can you forward certain requests from a Cloudflare Pages site to a different domain? - Cloudflare Developers
CD
Cloudflare Developers
•
2y ago
•
2 replies
himmelattack
Can you forward certain requests from a Cloudflare Pages site to a different domain?
Hello
! I
'm looking to see if I could deploy a site using PayloadCMS with Cloudflare Pages
. They have a backend accessible through routes starting with
/api
/api
.
Could I host my static frontend on Cloudfare Pages
, but forward
(or perhaps
"transform
" is the right word
) all requests to
/api
/api
to a server I would host elsewhere
?
In order to get cookies to work correctly
, the site would have to appear to the web browser like it was on the same domain
.
Thanks for your help
!
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
CloudFlare Pages Pointing to Domain from Different Account
CD
Cloudflare Developers / pages-help
3y ago
forward pages requests to origin
CD
Cloudflare Developers / pages-help
2y ago
Cloudflare pages.dev outputs a different look from linked custom domain
CD
Cloudflare Developers / pages-help
2y ago
Proxy requests from main domain to Pages app
CD
Cloudflare Developers / pages-help
2y ago