Skip to content

Fix mixed-content URLs from bridged apps#548

Merged
brandonpayton merged 1 commit into
mainfrom
emdash/fix-bridged-mixed-content
May 22, 2026
Merged

Fix mixed-content URLs from bridged apps#548
brandonpayton merged 1 commit into
mainfrom
emdash/fix-bridged-mixed-content

Conversation

@brandonpayton
Copy link
Copy Markdown
Member

Summary

  • Add forwarded host/proto/prefix headers when the service worker sends app requests through the HTTP bridge.
  • Rewrite same-host absolute http://... URLs in bridged text responses to the browser-visible app URL, preserving /kandelo/app and avoiding HTTPS mixed-content blocks.
  • Handle both plain URLs and escaped URL strings emitted in HTML/JS/JSON/CSS-like text responses.

Verification

  • node --check apps/browser-demos/public/service-worker.js
  • git diff --check origin/main..HEAD
  • Focused rewrite check covers WordPress-style http://brandonpayton.github.io/wp-includes/..., escaped http:\/\/..., and already-prefixed http://brandonpayton.github.io/kandelo/app/... URLs.

@brandonpayton brandonpayton merged commit 462b4b6 into main May 22, 2026
10 checks passed
@brandonpayton brandonpayton deleted the emdash/fix-bridged-mixed-content branch May 22, 2026 14:34
brandonpayton added a commit that referenced this pull request May 29, 2026
Summary
- Add forwarded host/proto/prefix headers when the service worker sends
app requests through the HTTP bridge.
- Rewrite same-host absolute `http://...` URLs in bridged text responses
to the browser-visible app URL, preserving `/kandelo/app` and avoiding
HTTPS mixed-content blocks.
- Handle both plain URLs and escaped URL strings emitted in
HTML/JS/JSON/CSS-like text responses.

Verification
- node --check apps/browser-demos/public/service-worker.js
- git diff --check origin/main..HEAD
- Focused rewrite check covers WordPress-style
`http://brandonpayton.github.io/wp-includes/...`, escaped
`http:\/\/...`, and already-prefixed
`http://brandonpayton.github.io/kandelo/app/...` URLs.
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