Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Youtube iframe nocookie not working. Trying to send me cookies

$
0
0
<iframe                             width="100%"                             height="315"                             src={`https://www.youtube-nocookie.com/embed/${props.ModalData.id}`}                             title="YouTube video player"                             frameBorder="0"                             allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"                             allowFullScreen></iframe>

my code is like this. the video opens. but i am getting errors in console. regarding the cookie and cors policy.

enter image description here

www.youtube-nocookie.com I tried with but still getting these errors.

errors:

Failed to load resource: net::ERR_FAILED

Access to XMLHttpRequest at'https://play.google.com/log?format=json&hasfast=true&authuser=0' fromorigin 'https://www.youtube-nocookie.com' has been blocked by CORSpolicy: Response to preflight request doesn't pass access controlcheck: The 'Access-Control-Allow-Origin' header has a value'http://play.google.com' that is not equal to the supplied origin.

POST https://play.google.com/log?format=json&hasfast=true&authuser=0net::ERR_FAILED

Indicate whether a cookie is intended to be set in a cross-sitecontext by specifying its SameSite attribute

Forget the 'mixed' error. i fixed it. but other errors remain


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>