vendredi 26 janvier 2018

Header authentication failed in Laravel API request on live server

Here is my .htaccess: Options -MultiViews

RewriteEngine On
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Things are working fine on local but its not accepting header on live server.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire