Laravel-websockets: CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Created on 25 Dec 2019  路  1Comment  路  Source: beyondcode/laravel-websockets

I keep getting this error with my private channels,

Access to XMLHttpRequest at 'http://site.me/api/broadcasting/auth' from origin 'http://localhost:3001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Cross-Origin Read Blocking (CORB) blocked cross-origin response http://site.me/api/broadcasting/auth with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.

public channel working fine, this happens on both local with homestead and production on VPS.

If can help I am using:

"barryvdh/laravel-cors": "^0.11.4",
"beyondcode/laravel-websockets": "^1.3",
"laravel-echo": "^1.6.1",
"pusher-js": "^5.0.3",

Most helpful comment

Any solution for this? Getting similar message on VPS

>All comments

Any solution for this? Getting similar message on VPS

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rikless picture rikless  路  4Comments

fridzema picture fridzema  路  4Comments

stefandanaita picture stefandanaita  路  4Comments

connecteev picture connecteev  路  3Comments

henzeb picture henzeb  路  4Comments