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

terlebach's avatar

Browsersync with Inertia and Axios 401

Hey Guys!

I tried to get browsersync to work but I couldn't manage to do so.

I have Laravel 9 installed with Jetstream and Inertia. In some of my widgets in the Backend I am using Axios calls to get fresh Data without having to use Inertias visit or reload methods.

But as soon as I am activating browsersync I am getting 401 responses from the API. It seems that Axios isn't sending the token in the header when using browsersync.

Does anyone have an idea how to fix this or where to have a look at?

0 likes
0 replies

Please or to participate in this conversation.