Skip to content

Conversation

@rbtying
Copy link
Owner

@rbtying rbtying commented Sep 17, 2025

  • Add tower-http with cors feature as a regular dependency
  • Configure CORS origins via CORS_ALLOWED_ORIGINS environment variable
  • Support comma-separated list of origins or "*" for any origin
  • Default to common localhost origins for development
  • Fix clippy warning about uninlined format args
  • Document new environment variable in README

This enables cross-origin requests to /api/rpc when WEBSOCKET_HOST is configured to a different origin, while maintaining security by requiring explicit origin configuration in production.

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

🏠 Remote-Dev: homespace

- Add tower-http with cors feature as a regular dependency
- Configure CORS origins via CORS_ALLOWED_ORIGINS environment variable
- Support comma-separated list of origins or "*" for any origin
- Default to common localhost origins for development
- Fix clippy warning about uninlined format args
- Document new environment variable in README

This enables cross-origin requests to /api/rpc when WEBSOCKET_HOST
is configured to a different origin, while maintaining security by
requiring explicit origin configuration in production.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

:house: Remote-Dev: homespace
@rbtying rbtying merged commit b49ef79 into master Sep 17, 2025
4 checks passed
@rbtying rbtying deleted the add-cors-support branch September 17, 2025 21:35
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.

2 participants