You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(playback): prevent nested CORS proxy fallback for equivalent URLs - #542
A catalog source already points at https://CORS.EXAMPLE:443/https://radio.example/live.mp3 while NUXT_PUBLIC_CORS_SERVER_1=https://cors.example/. src.startsWith(proxyBase) returns false even though URL parsing identifies the same proxy endpoint, causing an invalid nested proxy candidate.
Fix
Compare canonical URL forms for already-proxied candidates (normalizes host case/default HTTPS port) while retaining the existing explicit proxied flag and credential/HLS protections.
Regression
Added tests/radio-source-plan.test.mjs coverage for case/default-port equivalence and normal plain-stream fallback.
Verification
Node 22.16.0 reproduction confirmed the original mismatch (alreadyProxy: true, existingCheck: false). Full npm test on required Node 24.15.0 and GitHub CI remain pending; no production browser QA claimed.
Risk / acceptance
Low, localized to fallback planning. Verify no nested proxy candidate for equivalent URLs, normal non-HLS fallback still generated, HLS and signed URL safeguards remain unchanged. No production deployment or release requested.
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reproduction
A catalog source already points at
https://CORS.EXAMPLE:443/https://radio.example/live.mp3whileNUXT_PUBLIC_CORS_SERVER_1=https://cors.example/.src.startsWith(proxyBase)returns false even though URL parsing identifies the same proxy endpoint, causing an invalid nested proxy candidate.Fix
Compare canonical URL forms for already-proxied candidates (normalizes host case/default HTTPS port) while retaining the existing explicit
proxiedflag and credential/HLS protections.Regression
Added
tests/radio-source-plan.test.mjscoverage for case/default-port equivalence and normal plain-stream fallback.Verification
Node 22.16.0 reproduction confirmed the original mismatch (
alreadyProxy: true,existingCheck: false). Fullnpm teston required Node 24.15.0 and GitHub CI remain pending; no production browser QA claimed.Risk / acceptance
Low, localized to fallback planning. Verify no nested proxy candidate for equivalent URLs, normal non-HLS fallback still generated, HLS and signed URL safeguards remain unchanged. No production deployment or release requested.