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

cesarfp's avatar

Token-Based Authentication does not working in shared hosting when I use authorization header

I have developed some apis using token-based authentication and I authenticate each request by sending the authorization header. I configured my lavarel api project in a shared hosting and only works when I send the api token by query string but not when I send the authorization header. What could I do to resolve this? In my local server it works well.

0 likes
0 replies

Please or to participate in this conversation.