appleple / modal-video

https://appleple.github.io/modal-video/
MIT License
268 stars 79 forks source link

YouTube modal not working on some browsers #50

Open tarya85 opened 4 years ago

tarya85 commented 4 years ago

Hi! I've recently downloaded your library (version 2.4.2) and I noticed that YouTube modal video only works on Chrome (version 80.X) and Safari (version 13.X), but not on Explorer (version 11.X), Edge (version 44.X) and Firefox (version 74.0).

This is the error: The script from "https://static.doubleclick.net/instream/ad_status.js" has been blocked due to the unused MIME type ("image / png"). Multi-origin request blocked (cross-origin): the origin matching criterion does not allow the remote resource to be read from https://googleads.g.doubleclick.net/pagead/id?slf_rd=1. Reason: CORS request failed.

I've tested and used your library before and I'm sure it worked! Any changes in YouTube policies? Thanks!

rbrum commented 2 years ago

👍 I am also experiencing this issue. YouTube Modal only works on Chrome and Safari for me, but not Edge or Firefox.

uidev1116 commented 1 year ago

@tarya85 @rbrum Sorry for late reply. Does the error still happen? I don't know the exact cause, but it seems to be a CORS error. Please check CORS settings.