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

Add Cloudflare Pages headers file #315

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

laurencegill
Copy link

PoC - disable the default behaviour of adding access-control-allow-origin: * to pages sites

Enable ACAO only for static /images/

Available at:

https://cf-pages-headers.matrix-to-asy.pages.dev/

The deployment mechanism probably needs looking at (writing into the build.js file).

Reference:

https://github.com/vector-im/sre-internal/issues/2606

@laurencegill
Copy link
Author

@bwindels can we merge this?

@t3chguy
Copy link
Member

t3chguy commented Aug 7, 2023

@laurencegill this seems like it'll break Netlify deploys? Surely it shouldn't be done by the build script unless its happening for CFP?

@t3chguy
Copy link
Member

t3chguy commented Aug 7, 2023

Not sure why this repo uses Netlify & CFP for PR previews, likely Netlify can just be disabled a this point

@laurencegill
Copy link
Author

Not sure why this repo uses Netlify & CFP for PR previews, likely Netlify can just be disabled a this point

I'm not sure if Netlify is still used or not, if not we can disable it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants