youtube-embed icon indicating copy to clipboard operation
youtube-embed copied to clipboard

CORS Error when using Firefox

Open eric-nicular opened this issue 2 years ago • 2 comments

When using the component, it appears to work in Chrome and Edge, but Firefox gives a CORS error and does not display the video, giving the following error messages:

"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=RlsMpoPqFfs&format=json. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘null’).

Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. "

eric-nicular avatar Oct 06 '22 14:10 eric-nicular

Issue appears only in dev for me. In production URL is resolved.

sanderjson avatar Oct 14 '22 17:10 sanderjson

@eric-nicular is this still the case? Can you update the package and see if it is resolved?

sharu725 avatar Feb 12 '24 14:02 sharu725