web-stories-wp icon indicating copy to clipboard operation
web-stories-wp copied to clipboard

Cross-Origin-Resource-Policy errors in Safari

Open swissspidy opened this issue 3 years ago • 2 comments
trafficstars

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

Screenshot 2022-03-23 at 21 04 49 Screenshot 2022-03-23 at 21 05 21

Additional Context

  • Plugin Version: 1.19.0
  • WordPress Version: 5.9
  • Operating System: macOS Monterey
  • Browser: Safari 15.4

swissspidy avatar Mar 23 '22 20:03 swissspidy

Same in Microsoft Edge. But Google Chrome appears to be working fine.

image

ilovefreesw avatar Jul 29 '22 06:07 ilovefreesw

@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

swissspidy avatar Jul 29 '22 10:07 swissspidy