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

前端 未结 3 1007
再見小時候
再見小時候 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: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...

提交回复
热议问题