Skip to content

fix: ws web channel cors#2040

Merged
marrouchi merged 1 commit into
mainfrom
fix/widget-cors
Jun 10, 2026
Merged

fix: ws web channel cors#2040
marrouchi merged 1 commit into
mainfrom
fix/widget-cors

Conversation

@marrouchi

Copy link
Copy Markdown
Contributor

What changed?

  • Refactors API config parsing into shared helpers and adds reusable origin utilities.
  • Tightens Socket.IO origin checks so web widget sockets use each web source’s allowed_domains, while console/admin - sockets use global allowed origins.
  • Updates web channel CORS validation to normalize origins consistently and trims allowed domain settings.
  • Adds a WEBSOCKET_GATEWAY injection token and updates workflow tests/services to use it.
  • Adds unit coverage for parsing, origin matching, and Socket.IO origin policy behavior.

@marrouchi marrouchi merged commit 3a29c91 into main Jun 10, 2026
1 check passed
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