Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALLOWED_ORIGINS environment variable #197

Merged
merged 3 commits into from
Mar 4, 2025
Merged

ALLOWED_ORIGINS environment variable #197

merged 3 commits into from
Mar 4, 2025

Conversation

karlromets
Copy link
Collaborator

Fixes #196

  • Defaults to "*"
  • Separate by commas ALLOWED_ORIGINS="https://example.com,https://app.example.com"
  • Deployment will have to be updated with famf.app origins @joshzcold

- implement configurable allowed origins for ws connections
- add env variable  for ALLOWED_ORIGINS
- update Dockerfile to set default allowed origins
- modify ws upgrader to check origin based on configuration
Copy link

Test Results

27 tests   27 ✅  55s ⏱️
 8 suites   0 💤
 1 files     0 ❌

Results for commit a59bb23.

Copy link
Owner

@joshzcold joshzcold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍

@karlromets karlromets merged commit df270ec into master Mar 4, 2025
3 checks passed
@karlromets karlromets deleted the fix/ws-origins branch March 4, 2025 16:41
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.

Request Origin Not Allowed
2 participants