coder/websocket

Can't activate CORS for examples /chat/

remotejob opened this issue · 2 comments

func (cs *chatServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Access-Control-Allow-Origin", "*"

Don't work for me, any help appreciated.

Can you clarify what doesn't work?

Going to close, feel free to reopen if there's additional information.