Skip to content

Conversation

@avaer
Copy link
Member

@avaer avaer commented Jul 16, 2019

WebSocket is supposed to use an Origin header on its initial connection attempt, which is checked by backends -- notably webpack-dev-server.

Our websocket library supports setting the origin header in the options, but Exokit wasn't binding that option to implicit value in the calling window context. This PR adds a WebSocket wrapper which attaches the origin from the window/self .location.

@avaer avaer merged commit 7383f00 into master Jul 16, 2019
@avaer avaer deleted the ws-origin branch July 16, 2019 17:47
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