Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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}]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Laravel #API #Endpoint #Server #But #Works #Fine #On #Localhost
ADD COMMENT
Topic
Name
8+9 =