Authentification basique REST - autoriser le header "Authorization"

Problème

La plupart des hébergements mutualisés semblent désactiver le header "autorization"

Solution possible

Il faut éditer le fichier .htaccess et y ajouter ceci :

RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
Authentification basique REST - autoriser le header "Authorization"
Article publié le

Catégories : API rest FAQ

Mots-clés : API REST

Partager : Partager sur Facebook Partager sur Twitter Partager sur LinkedIn