Skip to content

feat(voice): proxy Yapper through Mitzo to fix HTTPS mixed-content#121

Merged
dimakis merged 1 commit intomainfrom
feat/yapper-proxy
Apr 7, 2026
Merged

feat(voice): proxy Yapper through Mitzo to fix HTTPS mixed-content#121
dimakis merged 1 commit intomainfrom
feat/yapper-proxy

Conversation

@dimakis
Copy link
Copy Markdown
Owner

@dimakis dimakis commented Apr 6, 2026

Summary

  • Adds /api/yapper/* HTTP proxy and /api/yapper-ws WebSocket proxy in Mitzo's Express server, forwarding to local Yapper on port 8700
  • Frontend YAPPER_URL now uses the same protocol/host as Mitzo (inherits HTTPS automatically)
  • Fixes mic button disappearing when Mitzo is served over HTTPS — no more mixed-content blocks

Test plan

  • Open Mitzo over HTTPS on iPhone, verify mic button appears
  • Hold mic button, verify it records and transcribes
  • Verify TTS still works

🤖 Generated with Claude Code

…tent

Browser blocked direct connections to http://localhost:8700 when Mitzo
is served over HTTPS. Add http-proxy-middleware routes so all Yapper
traffic flows through the same origin:

- HTTP: /api/yapper/* → http://localhost:8700/*
- WebSocket: /api/yapper-ws/* → ws://localhost:8700/*

Frontend YAPPER_URL updated to relative /api/yapper (protocol-relative,
inherits https:// automatically). WS URL construction now targets
/api/yapper-ws. YAPPER_PROXY_TARGET env var allows target override.
VITE_YAPPER_URL override still respected. Tests: 4 new proxy tests pass.
@dimakis dimakis merged commit 0a864a6 into main Apr 7, 2026
1 check passed
@dimakis dimakis deleted the feat/yapper-proxy branch April 7, 2026 11:20
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