tlaverdure / laravel-echo-server

Socket.io server for Laravel Echo
MIT License
2.65k stars 512 forks source link

Is the cors configuration even working? #602

Closed mwleinad closed 1 year ago

mwleinad commented 2 years ago

Well, what I'm trying to actually do is to send the https cookies on the websocket request, but I've not been able to do it. But I'm just playing around with the json configuration and it looks like the cors config is not even working or doesn't have any effect at all.

Using laravel-echo-server 1.6.0 (Maybe I need to upgrade?)

To Reproduce Here's part of my json file (the important part is the socketio piece

{ "authHost": "https://dev.ilosvideos.com", "devMode": true, "host": "0.0.0.0", "port": "3000", "protocol": "http", "socketio": { "cookie": { "sameSite": "none", "secure": true }, "cors": { "origin": "http://google.com", "method": ["DELETE"], "allowedHeaders": ["Authorization, Cookie"], "credentials": true } }, }

Expected behavior I expect this to fail, cors is all wrong and this is connecting from localhost to a different host

Additional context Connection to private channel is successful image

jose123v commented 2 years ago

This package is abandoned