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

CMS deployments are missing assets due to CORS error #15184

Closed
Tracked by #14225
alexgibson opened this issue Sep 19, 2024 · 4 comments
Closed
Tracked by #14225

CMS deployments are missing assets due to CORS error #15184

alexgibson opened this issue Sep 19, 2024 · 4 comments
Assignees
Labels
Bug 🐛 Something's not working the way it should

Comments

@alexgibson
Copy link
Member

Description

The CMS deployments (for editing/publishing) are not loading bedrock's web fonts due to a CORS error.

https://dev.cms.bedrock.nonprod.webservices.mozgcp.net/en-US/about/leadership/

image

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www-dev.allizom.org/media/protocol/fonts/ZillaSlab-Bold.be1d6507cb98.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www-dev.allizom.org/media/protocol/fonts/Inter-Regular.1a7f90ff1f1e.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

downloadable font: download failed (font-family: "Zilla Slab" style:normal weight:700 stretch:100 src index:1): bad URI or cross-site access not allowed source: https://www-dev.allizom.org/media/protocol/fonts/ZillaSlab-Bold.be1d6507cb98.woff

downloadable font: download failed (font-family: "Inter" style:normal weight:400 stretch:100 src index:1): bad URI or cross-site access not allowed source: https://www-dev.allizom.org/media/protocol/fonts/Inter-Regular.1a7f90ff1f1e.woff

@alexgibson alexgibson added the Bug 🐛 Something's not working the way it should label Sep 19, 2024
@alexgibson alexgibson changed the title CMS preview panes are missing web fonts due to CORS error CMS deployments are missing web fonts due to CORS error Sep 19, 2024
@stevejalim
Copy link
Collaborator

This is now also blocking us from loading the JS we need to share drafts

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www-dev.allizom.org/media/wagtaildraftsharing/js/wagtaildraftsharing_controller.43684bb77729.js. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

@stevejalim stevejalim self-assigned this Oct 10, 2024
@stevejalim stevejalim changed the title CMS deployments are missing web fonts due to CORS error CMS deployments are missing assets due to CORS error Oct 10, 2024
@stevejalim
Copy link
Collaborator

Given that SRE is in-flight updating CDN providers for us, I think i'll defer this to @bkochendorfer whenever he's around - let's Slack about this, Brett.

@stevejalim
Copy link
Collaborator

This is fixed on Dev but still needs addressing on Stage and Prod

@stevejalim
Copy link
Collaborator

@alexgibson This looks fixed to me on Dev, Stage and Prod for the CMS deployment, thanks to @bkochendorfer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something's not working the way it should
Projects
None yet
Development

No branches or pull requests

3 participants
@stevejalim @alexgibson and others