web-stories-wp
web-stories-wp copied to clipboard
Cross-Origin-Resource-Policy errors in Safari
Bug Description
Safari seems to interpret CORS and CORP headers differently than Chrome, throwing tons of console errors when displaying text sets or templates in the editor, and also preventing from enqueueing font stylesheets (as mentioned at https://github.com/GoogleForCreators/web-stories-wp/issues/11048#issuecomment-1076746765)
The text sets and templates display fine in the browser though, so that part is not urgent.
The fonts not being loaded though is not nice.
Expected Behaviour
No console errors
Steps to Reproduce
Open Text Sets or Page Templates pane, or open font picker.
Screenshots
Additional Context
- Plugin Version: 1.19.0
- WordPress Version: 5.9
- Operating System: macOS Monterey
- Browser: Safari 15.4
Same in Microsoft Edge. But Google Chrome appears to be working fine.

@ilovefreesw The errors in your screenshot are about something else though and are unrelated.
You need to set up CORS headers for your CDN, check out https://wp.stories.google/docs/troubleshooting/common-issues/ to learn more