Repository navigation
Conversation
- Old host 307-redirects without CORS headers and fails preflight, causing 'Failed to fetch' - Fixes pear-devs#4862
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Tested in the running app (built from this branch with
Chromium still logs a harmless "Unsafe attempt to load URL …" console message for both this proxy and Genius; both requests complete, so it's unrelated to this fix. |
Fixes #4862.
https://ytmbrowseproxy.zvz.be/now 307-redirects tohttps://a-ytmbrowseproxy.zvz.be/. The redirect lacks CORS headers and the old host's CORS preflight returns a Cloudflare 525, so the renderer'sfetchrejects withTypeError: Failed to fetch.This points
PROXIED_ENDPOINTat the new host, which answers preflight withaccess-control-allow-origin: *.Verified: a POST to
a-ytmbrowseproxy.zvz.be/browsewith a real lyrics browseId (MPLYt_dcYZhAh5urI-1) returnstimedLyricsDatain the shape the parser expects. Not yet tested in the running app.Note: this depends on the proxy's current redirect target; a stable hostname from the proxy maintainer would be more durable.
Summary by CodeRabbit