Skip to content

fix(service): allow desktop app origins in Buzz template CORS - #11046

Open
Onnokh wants to merge 1 commit into
coollabsio:nextfrom
Onnokh:fix/buzz-template-tauri-cors
Open

fix(service): allow desktop app origins in Buzz template CORS#11046
Onnokh wants to merge 1 commit into
coollabsio:nextfrom
Onnokh:fix/buzz-template-tauri-cors

Conversation

@Onnokh

@Onnokh Onnokh commented Jul 25, 2026

Copy link
Copy Markdown

Changes

  • Add the two Tauri origins (tauri://localhost, http://tauri.localhost) to
    BUZZ_CORS_ORIGINS in the Buzz template, so the Buzz desktop app can connect
    to the deployed relay.

Issues

Category

  • Bug fix
  • Improvement
  • New feature
  • Adding new one click service
  • Fixing or updating existing one click service

AI Assistance

  • AI was NOT used to create this PR
  • AI was used (please describe below)

If AI was used:

  • Tools used: Claude Code
  • How extensively: Used to trace the cause and prepare the patch. The desktop
    app failed with "Load failed" against my own self-hosted Buzz relay. The two
    origins come from Buzz's own source, which documents them in its relay config
    and hardcodes the same pair in the desktop media proxy. Verified on a live
    deployment before opening this PR. Human-reviewed.

Testing

Deployed Buzz behind Coolify's proxy and compared CORS responses before and
after the change:

Origin before after
the relay's own https origin allowed allowed
tauri://localhost no access-control-allow-origin header allowed

The desktop app went from "Load failed" to connecting normally, with no other
change. The relay parses the variable as a comma-separated list, so the existing
web origin is unaffected.

Contributor Agreement

Important

  • I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
  • I have searched existing issues and pull requests (including closed ones) to ensure this isn't a duplicate.
  • I have tested all the changes thoroughly with a local development instance of Coolify and I am confident that they will work as expected when a maintainer tests them.

BUZZ_CORS_ORIGINS only listed the web origin, so the Buzz desktop app
could not reach a relay deployed from this template and reported
"Load failed" when joining the community.

The app is a Tauri webview and sends tauri://localhost on macOS or
http://tauri.localhost on Windows/Linux — the pair Buzz documents in
config.rs and hardcodes in media_proxy.rs.

Signed-off-by: Onno Klein Hofmeijer <onnokh@hotmail.com>
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