Skip to content

Add Cloudflare Pages headers file#315

Open
laurencegill wants to merge 2 commits intomainfrom
cf_pages_headers
Open

Add Cloudflare Pages headers file#315
laurencegill wants to merge 2 commits intomainfrom
cf_pages_headers

Conversation

@laurencegill
Copy link
Copy Markdown

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
Copy Markdown
Author

@bwindels can we merge this?

@t3chguy
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants