Commit Graph

24 Commits

Author SHA1 Message Date
TheCodeholic f15301d18d
Preserve X-Xsrf-Token header from .htaccess (#6520)
* Preserve X-Xsrf-Token header from .htaccess

Preserve X-Xsrf-Token header for session based authentication when building API in Laravel

* Update .htaccess

* Update .htaccess

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2025-01-14 14:03:16 -06:00
Taylor Otwell cf5e99e9aa change comment 2019-12-20 14:48:04 -06:00
lbausch 83f568a317
Remove whitespace 2017-12-02 23:53:28 +01:00
David Cox Jr 8d1d1e1b94 Update .htaccess
This rewrite condition is never hit as the rewrite to index is triggered before this, and the authorization is never passed on. Moving this condition corrects that issue as mentioned on the commit
2017-09-26 13:13:01 -04:00
Andrey Helldar bf59cd3ce1 Added "-Indexes" option
If you open the `/css`, `/js`, or any other folder on the default server, you can see the list of files in the directory.
The `-Indexes` option forbids viewing directory files via the web interface.
2017-09-18 20:42:11 +03:00
Drew c5f993fa28 Fixed trailing slash redirection for subdirectory installs.
Previously redirection to remove trailing slashes would fail if Laravel was not installed in the root directory.
2017-07-23 00:35:36 -07:00
Paul Vidal 85e8d21ef2 handle authorization header 2016-01-23 12:02:55 -05:00
Taylor Otwell 804b9d7460 fix wording 2015-06-26 08:30:59 -05:00
Ben Sampson dd036f559b Fix redirect loop .htaccess
Folders that exist have a redirect loop when visiting them. This is because Apache redirects to trailing slash for folders and the current rule is removing it, Apache then adds a trailing slash again.
2015-06-26 14:26:44 +01:00
Chen Hua 0f68f561e9 tabs to spaces 2013-12-25 09:57:47 +08:00
Taylor Otwell b00d8c5a72 Wrap in IfModule. 2013-10-30 10:14:09 -05:00
Taylor Otwell ce64714b2f Tweak front controller. Htaccess. 2013-10-26 11:27:40 -05:00
ameech a7b209ffcc Updated line to use spaces instead of tabs. 2013-09-19 00:10:17 -05:00
Taylor Otwell 08cb97fa6d Tweak .htaccess. 2013-06-15 13:15:13 -05:00
Taylor Otwell c7f889fe54 Move slash redirects to application level. 2013-05-14 00:27:41 -05:00
Brian Kiewel 982e51fd98 Converted spaces to tabs for consistency 2013-04-13 09:39:38 -07:00
Taylor Otwell 343c31e5db Redirect trailing slashes with 301. 2013-04-09 15:37:50 -05:00
Taylor Otwell 5d99f9f1d6 moving laravel 4 into develop branch. 2013-01-11 15:14:07 -06:00
syntaqx 9ec4c866bd added htaccess documentation and symlinks
Signed-off-by: syntaqx <syntaqx@gmail.com>
2012-05-28 18:39:26 -06:00
Taylor Otwell eebbc08293 added back .gitignores 2011-08-03 22:15:08 -05:00
Taylor Otwell f0f3dffc11 added module support! 2011-08-03 22:10:07 -05:00
Taylor Otwell 30c83f265d overall code refactoring. 2011-06-14 17:27:11 -05:00
Taylor Otwell 3f04484b83 Modified default .htaccess to be more consistent with other popular frameworks. 2011-06-10 14:15:44 -07:00
Taylor Otwell a188d62105 initial commit of laravel! 2011-06-08 23:45:08 -05:00