Laravel sanctum returns "Unauthenticated" with bearer token in header

Viewed 48

Hi after deploying the laravel backend to a shared hosting envirnoment, I am getting Unauthenticated message from server. I am making the request from postman. I have seen many solutions like adding SANCTUM_STATEFUL_DOMAINS and SESSION_DOMAIN as localhost, etc. this backend works for mobile app so I am not sure what will go inside these two variables but none of the solution has been working.

Anything else should I try?

Response image

Headers:

enter image description here

0 Answers
Related