stesvis
1 month ago
119
4
Laravel

Api returns "200 OK" instead of "401 Unauthorized"?

Posted 1 month ago by stesvis

Hello,

I am using Passport to protect my APIs, and when I am logged in it's all good, but when I am logged out my API still returns a 200 code instead of 401. The response is the HTML content of my web login page.

How come??

Please sign in or create an account to participate in this conversation.