Piped icon indicating copy to clipboard operation
Piped copied to clipboard

CORS error spam on certain videos

Open loldev69 opened this issue 2 years ago • 3 comments

Official Instance

Describe the bug

Most videos play fine, but some never load and hundreds of CORS errors appear in the console. See below for example video and error. The issue appear to be tied to specific videos.

To Reproduce

Example of affected video: https://piped.video/watch?v=luqqcLL4xnw

Expected behavior

Video should play and not spam errors.

Logs/Errors

Access to fetch at 'https://pipedproxy-ams-2.kavin.rocks/videoplayback/expire/1701533479/ei/xwJrZd_dKqe_6dsP_7WQgAc/ip/89.46.223.184/id/96eaaa70b2f8c67c/itag/136/source/youtube/requiressl/yes/xpc/EgVo2aDSNQ%3D%3D/mh/4A/mm/31,29/mn/sn-5hnednss,sn-5hne6nzs/ms/au,rdu/mv/m/mvi/3/pl/24/initcwndbps/1040000/spc/UWF9f2DZy2eGpf1wv1MtLd6oXu1xqKrf_RoNRyTDtw/vprv/1/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/699672/lmt/1646043850277196/dur/10.083/rqh/1/mt/1701511499/fvip/5/keepalive/yes/fexp/24007246/sparams/expire,ei,ip,id,itag,source,requiressl,xpc,spc,vprv,ratebypass,mime,otfp,gir,clen,lmt,dur,rqh/sig/ANLwegAwRgIhAOXPU05IzIUfo55iLoFA-MUUJDw9ykgj6bj7XTqbUgFyAiEA52lnVB3suLyaAxrzteXMHRMvgYFqoPB1T8tk-FKy11s%3D/lsparams/mh,mm,mn,ms,mv,mvi,pl,initcwndbps/lsig/AM8Gb2swRgIhAINSA1aB1QAdwxx0xWAEVMZCWfN6aIcLrVoz61hYTeA-AiEA_Ftt8HyJjputJaoXwvsqrSCZqxRA9edDS7ydyIPaSDo%3D/range/0-739?host=rr3---sn-5hnednss.googlevideo.com' from origin 'https://piped.video' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Browser, and OS with Version.

Reproduced on Firefox, Brave, Edge, and Tor Browser.

Additional context

No response

loldev69 avatar Dec 02 '23 10:12 loldev69

I'm getting this same error on almost every video on each instance I try (Firefox 118.01) This renders the piped video unwatchable (they just fail). I am trying plugins that disable CORs, but they aren't working so far.

WorldsEndless avatar Dec 11 '23 18:12 WorldsEndless

I can confirm that the issue is still occurring for me. I doubt that it's caused by a CORS misconfiguration, as it seems that some requests to my pipedproxy server succeed while others randomly fail.

blacklight avatar Dec 21 '23 00:12 blacklight

I'm getting it right now on piped.video on every video I try. Firefox 124.0 on Win10. Reproduces with extensions and tracking protection disabled.

ComodoHacker avatar Mar 28 '24 08:03 ComodoHacker