jackmoore / colorbox

A light-weight, customizable lightbox plugin for jQuery
http://www.jacklmoore.com/colorbox/
MIT License
4.75k stars 1.14k forks source link

Cross-Origin Request Blocked #864

Open praseetha-ts opened 6 years ago

praseetha-ts commented 6 years ago

After resizing the window and when we click below error is coming

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.youtube.com/embed/EngW7tLk6R8. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

jackmoore commented 6 years ago

Sorry, there isn't much to go on here. Are you using an iframe?

Cross-Origin restrictions (CORS header) is set on YouTube's servers and are unrelated to Colorbox. If you take Colorbox out of the equation by adding the content directly to your page, do you experience the same issue?