traefik / whoami

Tiny Go server that prints os information and HTTP request to output

Home Page:https://traefik.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebSocket Origin

iesrbt opened this issue · comments

Hi,
would you please be kind enough to add:

CheckOrigin: func(r *http.Request) bool {
        return true
},

as member of the upgrader variable?
This would allow to test the WS stuff from anywhere.
Thanks a lot!

[ I know I should fork then pull request. Sorry :-) ]

Hi,
it is quite old but have you done the PR?

Hey, I am having this issue too.
The container returns:
websocket: request origin not allowed by Upgrader.CheckOrigin

commented

PR done