Laravel_Echo_Tutorial icon indicating copy to clipboard operation
Laravel_Echo_Tutorial copied to clipboard

Auth 0 authetication error

Open harishdrish123 opened this issue 7 years ago • 2 comments

Hi,

I have setup all your code on my local system but always it comes with 403 error in broadcast authentication url. Please help me to resolve this problem.

Thanks Harish Kumar

harishdrish123 avatar Apr 24 '18 09:04 harishdrish123

Same here. It throws a POST error on broadcasting/auth 403 (Forbidden) and does not broadcast to other users.

What should I do? any suggestions? It would be greatly appreciated! Thanks.

Aijeleth06 avatar May 27 '18 23:05 Aijeleth06

hi you can use in your BroadcastServiceProvider

public function boot()
    {
       Broadcast::routes(['middleware' => 'auth']);

        require base_path('routes/channels.php');
    }

hamelraj89 avatar Jun 04 '18 20:06 hamelraj89