react-player icon indicating copy to clipboard operation
react-player copied to clipboard

Player is not working when using X-Frame-Options: SAMEORIGIN

Open kadeau-devteam opened this issue 5 months ago • 1 comments

I used in nextjs with X-Frame-Options: SAMEORIGIN.

Embeding iframe directly in website worked normal.

This was iframe that worked:

<iframe width="560" height="315" src="https://www.youtube.com/embed/EngW7tLk6R8?si=uhbl1zEg9TNlubI6" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

kadeau-devteam avatar Apr 29 '25 20:04 kadeau-devteam