From b98095cfaab06cd6fb115e3b327af6cb2fdb9934 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20Borbo=C3=ABn?= <ponsfrilus@gmail.com>
Date: Wed, 13 Jan 2021 18:56:44 +0100
Subject: [PATCH] [fix] Let PHP know about authorizations headers

* https://stackoverflow.com/a/46323802/435004
---
 canapGEST/API/public/.htaccess | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/canapGEST/API/public/.htaccess b/canapGEST/API/public/.htaccess
index 258956f..167b240 100644
--- a/canapGEST/API/public/.htaccess
+++ b/canapGEST/API/public/.htaccess
@@ -1,6 +1,8 @@
 Options +FollowSymLinks
 RewriteEngine On
 
+RewriteRule .* - [e=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^ index.php [L]
\ No newline at end of file
-- 
GitLab