Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

codeXX's avatar
Level 1

Keep getting 403 forbidden for broadcast channel with Reverb

I have the following channel definition, I keep getting the 403 error for guest user. What is wrong here? Do I need to disable some middleware? I am using Laravel 11

Broadcast::channel('Room.{id}', function ($user) {
	return true;
});

const ws = Echo.join('Room.xxxxxxx');

0 likes
1 reply
codeXX's avatar
Level 1

Okay, this is what I found so far, Echo.join is used to subscribe to a PresenceChannel so, it will automatically hit /broadcast/auth to authenticate the current user. Since its a guest, throws a 403 error.

Please or to participate in this conversation.