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

wesleya's avatar

401 unauthorized api response on IE

I'm making API calls from Vue on the front end. It works fine on firefox and chrome. I can navigate to the web page, the page makes the api call, and the data is returned correctly.

But when I try the same thing on IE, I navigate to the page, the page makes the api call, but gets a 401 unauthorized response. There aren't any errors in the chrome/ID dev tools console. I also don't see any exceptions from laravel. I also tried clearing cache and cookies.

One thing I noticed was that chrome sends a 'spark_token' cookie in it's request header while internet explorer doesn't. Not sure why though.

Does anyone know what might be causing this? Has anyone else run into the same problem? Or has anyone else been able to use the default api authentication in IE without any problems?

0 likes
0 replies

Please or to participate in this conversation.