http://localhost:8000/broadcasting/auth 404 (Not Found)

后端 未结 5 1371
离开以前
离开以前 2021-01-04 01:27

I am trying to make my app app connect to pusher on a private channel.

But I am getting the following error:

pusher.js?b3eb:593 POST http://l

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 01:51

    Hope your base url is wrong try to hardcore your base url like below

    window.Echo = new Echo({
       authEndpoint : 'http://*******/public/broadcasting/auth',
        broadcaster: 'pusher',
        key: '********',
        cluster: '***',
        encrypted: true
    });
    

提交回复
热议问题