Not really sure where to put this, Kyatric would you kindly move this where appropriate,
Anyways, I'm coding a webserver in Golang that will hopefully handle websocket communication, and I think I hit a wall: the Origin Header is incorrect or not sent by the ws-plugin during the handshake, right now, I'm completely ignoring the Origin to make it work, but I'd love if Ashley confirmed that the header is sent properly by the websocket plugin
Ashley, I'm trying to start a websocket connection to my server from a localhost preview, but that server is giving me back, Error: Origin not allowed, is it because I'm running from localhost? I think so, I'll check when i have time to.
Develop games in your browser. Powerful, performant & highly capable.
Nvm, It's on the server-side, and it's fixed
Probably CORS again, guessing you need to set Access-Control-Allow-Origin. (Guessing you figured this out but posting for searchers)
Ashley, yeah, I properly get the origin header but I don't handle it, so the connection closes abruptely