Skip to content

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

Description

@frumbert

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions