Skip to content

Commit

Permalink
Preserve X-Xsrf-Token header from .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jan 25, 2025
1 parent 451a247 commit a013bd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Handle X-XSRF-Token Header
RewriteCond %{HTTP:x-xsrf-token} .
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
Expand Down

0 comments on commit a013bd4

Please sign in to comment.