Andy prz
CDCloudflare Developers
•Created by Andy prz on 8/18/2023 in #pages-help
Pages _headers file allow access JSON file
Hi everyone,
I have a React app on the Cloudflare page and there is a JSON file I want to access through the URL.
In my build, I tried to include a _headers file like in this documentation: https://developers.cloudflare.com/pages/platform/headers/#attach-a-header.
The file is like below:
/static/file.json
Access-Control-Allow-Origin: *
But I still get a CORS error when accessing the file through the URL path from another React app.
1 replies
CDCloudflare Developers
•Created by Andy prz on 7/27/2023 in #pages-help
Monorepo project on Cloudflare pages
Hi, we have a Monorepo project with multiple front-end applications inside, and each application needs to be deployed to a different page.
We tried to connect the Cloudflare page to a Git repo so we can use build command but found out that only one repo can connect to one repo.
How can we better manage our monorepo project on Cloudflare pages?
thank you
3 replies