915
submitted 2 months ago* (last edited 2 months ago) by mesamunefire@lemmy.world to c/technology@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] dan@upvote.au 1 points 2 months ago

On the web, it would not be possible.

Why not?

[-] VerPoilu@sopuli.xyz 2 points 2 months ago

Because of the CORS settings on Google's servers would tell your browser to not go forward with the request. There are two ways it could eventually be possible:

  • By opening the video in a new page/tab that only contains the video, with the YouTube player, which defeats the purpose a bit.
  • By installing an addon or an app on your device.
[-] dan@upvote.au 1 points 2 months ago

I haven't checked the CORS headers for YouTube videos but wouldn't access have to be fairly open to allow embedded videos to work?

[-] VerPoilu@sopuli.xyz 1 points 2 months ago

For that they use iframes, which have a different security system.

this post was submitted on 17 Sep 2024
915 points (99.6% liked)

Technology

59419 readers
2874 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS