Skip to content

fix(playback): prevent nested CORS proxy fallback for equivalent URLs - #542

Merged
hoangsvit merged 2 commits into
stagingfrom
fix/proxy-self-recursion-canonical-url-20261121
Nov 23, 2026
Merged

hoangsvit merged 2 commits into
stagingfrom
fix/proxy-self-recursion-canonical-url-20261121

Conversation

@hoangsvit

Copy link
Copy Markdown
Member

Reproduction

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.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

ePlus OnAir — PR Preview

🗃️ Preview expired. This PR is closed; the Preview link is hidden.

View build status

Preview is noindex; the full catalog is available on Staging after merge.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Important

Review skipped

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.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@hoangsvit
hoangsvit merged commit 5c62143 into staging Nov 23, 2026
10 checks passed
@hoangsvit
hoangsvit deleted the fix/proxy-self-recursion-canonical-url-20261121 branch November 23, 2026 11:12

This branch was previously deployed

1 inactive deployment
preview — 82e7faff Deployed Nov 23, 2026 by hoangsvit via Remove closed PR Preview #562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant