partytown icon indicating copy to clipboard operation
partytown copied to clipboard

To embed this frame in your document, the response needs to enable the cross-origin embedder policy by specifying the following response header: Cross-Origin-Embedder-Policy: require-corp

Open linuxd3v opened this issue 1 year ago • 6 comments

Describe the bug To use atomics - I add these headers to the html responses:

Cross-Origin-Embedder-Policy: credentialless   
Cross-Origin-Opener-Policy: same-origin

However - even without enabling partytown - this already causes some errors with some third party scripts. I'm seeing these errors in the console:

To embed this frame in your document, the response needs to enable the cross-origin embedder policy by specifying the following response header: Cross-Origin-Embedder-Policy: require-corp

These errors happen seemingly when third party scripts try to embed some html docs. Is this a known issue?

Expected behavior no errors in the console

Partytown version 0.7.0

Screenshots image

linuxd3v avatar Sep 16 '22 14:09 linuxd3v

I'm running into a similar issue with embedding iframes (e.g. code sandbox or codepen.)

My impression is that for third party iframes/scripts to work properly, those third parties would need to set CORS headers on their documents. Is that accurate?

I'm searching for solutions but may have to disable these headers for now to fix these embedded iframes.

(By the way, Partytown is awesome! Thanks for the great tool!)

Paul-Hebert avatar Sep 27 '22 18:09 Paul-Hebert

Having the same issue

Ins1eme avatar Oct 06 '22 14:10 Ins1eme

We're also having the same issue

maplessmann avatar Jan 05 '23 19:01 maplessmann

is there any solution here?

taraskhvyl avatar Aug 31 '23 10:08 taraskhvyl

Yes, atomics are very restrictive, to the point of being almost unusable. I don't think there is a good solution here...

mhevery avatar Aug 31 '23 17:08 mhevery

Yes, atomics are very restrictive, to the point of being almost unusable. I don't think there is a good solution here...

Yeah. I switched over to atomics and my Stripe integration for payments stopped working. Maybe there is something else that I needed to enable, but it seems that currently service workers are the best option.

mrxbox98 avatar Jun 26 '24 21:06 mrxbox98