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

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

Open
mesqueeb opened this issue Dec 30, 2022 · 10 comments
Open

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

mesqueeb opened this issue Dec 30, 2022 · 10 comments
Labels

Comments

@mesqueeb
Copy link

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

@mesqueeb mesqueeb added the bug label Dec 30, 2022
@jonobr1
Copy link
Owner

jonobr1 commented Jan 2, 2023

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

@mesqueeb
Copy link
Author

mesqueeb commented Jan 2, 2023

See both versions screenshots added

  • iPhone iOS 16.0.2
  • macOS safari Version 16.1 (18614.2.9.1.12)


ps: clicking rerun also does nothing

@mesqueeb
Copy link
Author

mesqueeb commented Jan 2, 2023

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

@mesqueeb
Copy link
Author

mesqueeb commented Jan 2, 2023

PS: these are my Safari privacy settings:
image

@mesqueeb
Copy link
Author

mesqueeb commented Jan 2, 2023

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 mesqueeb closed this as completed Jan 2, 2023
@mesqueeb
Copy link
Author

mesqueeb commented Jan 2, 2023

might be worth looking into different example providers other than codepen

@jonobr1
Copy link
Owner

jonobr1 commented Jan 2, 2023

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 jonobr1 reopened this Jan 2, 2023
@jonobr1
Copy link
Owner

jonobr1 commented Jan 3, 2023

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
Copy link

quezo commented Jan 4, 2023

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
Copy link
Owner

jonobr1 commented Jan 4, 2023

Amazing, thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants