Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Do not add the CORS headers in the install tool (see #8681).
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Apr 18, 2017
1 parent e404386 commit 813ac56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS changelog
Version 3.5.26 (2017-XX-XX)
---------------------------

### Fixed
Do not add the CORS headers in the install tool (see #8681).

### Fixed
Correctly move folders with an "@" in their name (see #8674).

Expand Down
5 changes: 5 additions & 0 deletions system/modules/core/library/Contao/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,11 @@ public static function redirect($strLocation, $intStatus=303)
*/
public static function setCorsHeaders()
{
if (TL_SCRIPT == 'contao/install.php')
{
return;
}

$strOrigin = \Environment::get('httpOrigin');

// Not a CORS request
Expand Down

0 comments on commit 813ac56

Please sign in to comment.