Pages

23 February, 2022

Laravel API Endpoint "401 Unauthorized" on Server But Works Fine On Localhost

 <?php



Laravel API Endpoint "401 Unauthorized" on Server But Works Fine On Localhost


add this following code in .htaccess file
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

No comments:

Post a Comment

Thanks