Skip to content

Commit 911434d

Browse files
authored
Only apache could manage to do something this ridiculous
1 parent 824041f commit 911434d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
# Redirect Trailing Slashes If Not A Folder...
99
RewriteCond %{REQUEST_FILENAME} !-d
1010
RewriteRule ^(.*)/$ /$1 [L,R=301]
11+
12+
# Prevent stripping authorization headers
13+
RewriteCond %{HTTP:Authorization} ^(.*)
14+
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
1115

1216
# Handle Front Controller...
1317
RewriteCond %{REQUEST_FILENAME} !-d

0 commit comments

Comments
 (0)