Laravel /broadcasting/auth Always Fails With 403 Error

Error 403 /broadcasting/auth with Laravel version > 5.3 & Pusher, you need to change your code in resources/assets/js/bootstrap.js with window.Echo = new Echo({ broadcaster: ‘pusher’, key: ‘your key’, cluster: ‘your cluster’, encrypted: true, auth: { headers: { Authorization: ‘Bearer ‘ + YourTokenLogin }, }, }); And in app/Providers/BroadcastServiceProvider.php, replace Broadcast::routes() with Broadcast::routes([‘middleware’ => [‘auth:api’]]); or … Read more