Apr 12, 2022
0
Level 6
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?
Please or to participate in this conversation.