noembed icon indicating copy to clipboard operation
noembed copied to clipboard

401 Unauthorized on some YouTube videos when setting zero on maxheight parameter

Open frumbert opened this issue 6 years ago • 1 comments

401 unauthorized:

https://noembed.com/embed?url=https://www.youtube.com/watch?v=0zic3GIcccc&maxwidth=0&maxheight=0&nowrap=on

Working:

https://noembed.com/embed?url=https://www.youtube.com/watch?v=0zic3GIcccc&maxwidth=854&maxheight=480&nowrap=on

oddly enough, also working

https://noembed.com/embed?url=https://www.youtube.com/watch?v=WR_hCMR2Xvc&maxwidth=0&maxheight=0&nowrap=on

Seems from my testing that setting maxwidth=0, maxheight=0 on videos marked as unlisted can cause 401 unauthorized to appear. If a value > 0 is used on the same url, the problem doesn't manifest, nor does it manifest of listed videos (in my testing).

frumbert avatar Apr 11 '18 02:04 frumbert

I had the same problem and I noticed it was the option "allow embedding" not checked. This should solve the problem.

ferrolive avatar Oct 08 '18 08:10 ferrolive