‘Access-Control-Allow-Origin’ missing when uploading to YouTube API

前端 未结 3 965
再見小時候
再見小時候 2021-01-03 03:46

For several years we have successfully been uploading videos via the YouTube API using some custom JavaScript code. The code was based on some samples provided by Google (co

相关标签:
3条回答
  • 2021-01-03 04:21

    Google has fixed the problem and our long-standing code is back to working again without any changes.

    Here is the tracked issue: https://issuetracker.google.com/issues/158718687

    0 讨论(0)
  • 2021-01-03 04:27

    Same here. I have no Solution, just a workaround and I hope they fix it soon. You can disable the CORS safetycheck in chrome. Run chrome.exe with --disable-web-security and set the user-data Directory temporary to another location, with the following parameter and the folder you want --user-data-dir=c:/anyfolderName/`

    For security reasons you should disable-web-security only if you have to and switch back if youre done.

    I dont know why this get a downvote, because it helped me to get around. Now google fixed the issue, no need to use this workaround longer. But maybe it helps when another CORS issue arise...

    0 讨论(0)
  • 2021-01-03 04:39

    The same problem just started to happen with my services.

    It seems to be a bug on googleapis or maybe youtube.v3.apis had a policy change and started to block some clients.

    0 讨论(0)
提交回复
热议问题