Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Works fine in chrome but ‘Access-Control-Allow-Origin’ missing issues in Firefox when fetching to YouTube thumbnail Link. #528

Open
virendra05 opened this issue Apr 26, 2021 · 0 comments

Comments

@virendra05
Copy link

I am trying to fetch the YouTube Thumbnail Link Details and and create a file. The code works fine in chrome but not working in Firefox and Safari

Below is the code which I tried to fetch through Console
await fetch("http://img.youtube.com/vi/_WqRK6od-Dg/0.jpg"). then(async (response) => { let type = response.headers.get('content-type'); let blob = await response.blob(); let file = new File([blob], 'thumbnial.jpg', { type }); return file; });

Chrome Screenshot:

image

Firefox Screenshot:
image

**FireFox Version: 88.0 (64-bit), Safari Version:14.0.3

Can anyone tell me what's the issue?**

@virendra05 virendra05 changed the title Fetch YouTube Thumbnail Link Same-Site CORS issues in Firefox, but works fine Chrome Fetch YouTube Thumbnail Link CORS issues in Firefox, but works fine Chrome Apr 26, 2021
@virendra05 virendra05 changed the title Fetch YouTube Thumbnail Link CORS issues in Firefox, but works fine Chrome Works fine in chrome but ‘Access-Control-Allow-Origin’ missing issues in Firefox when fetching to YouTube thumbnail Link. Apr 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant