You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
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; });
The text was updated successfully, but these errors were encountered:
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
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
Firefox Screenshot:
**FireFox Version: 88.0 (64-bit), Safari Version:14.0.3
Can anyone tell me what's the issue?**
The text was updated successfully, but these errors were encountered: