jonobr1 / two.js

A renderer agnostic two-dimensional drawing api for the web.
https://two.js.org
MIT License
8.29k stars 454 forks source link

[Bug] the codepen examples don't load on macOS Safari #680

Open mesqueeb opened 1 year ago

mesqueeb commented 1 year ago

the codepen examples don't seem to load on macOS Safari: https://two.js.org/

jonobr1 commented 1 year ago

What version? They work for me on Version 16.1 (18614.2.9.1.12)

mesqueeb commented 1 year ago

See both versions screenshots added


ps: clicking rerun also does nothing

mesqueeb commented 1 year ago

PS: on page load for macOS I get this in the Safari console: image

mesqueeb commented 1 year ago

PS: these are my Safari privacy settings: image

mesqueeb commented 1 year ago

disabling prevention of cross-site tracking seems to show the examples again, but I don't think many people would allow such a thing... : /

I guess the issue is upstream

mesqueeb commented 1 year ago

might be worth looking into different example providers other than codepen

jonobr1 commented 1 year ago

Ohhhhh, this is the embedded Codepens. Not the /examples page. Maybe my API key is configured incorrectly. I'll look into this. Thanks for reporting

jonobr1 commented 1 year ago

I tried setting the Content Security Policy meta tag as described in this Stack Overflow, but was unable to come to a meaningful resolution. So, I've reached out to CodePen for guidance. I'll update this issue when I hear back.

quezo commented 1 year ago

Safari 16 doesn't send the session cookie if the web page is in an iFrame and Prevent cross site-tracking is enabled (this is the default setting).

It isn't reasonable to ask users to disable cross site scripting projection so we've released a workaround on our end and embeds work on Safari again.

jonobr1 commented 1 year ago

Amazing, thanks for the update!