Skip to content

Commit 796a19d

Browse files
author
ogorkun
committed
MC-37623: [2.3.x] CSP cannot be configured from a theme
1 parent 67e832f commit 796a19d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Csp/Model/Collector/CspWhitelistXml/FileResolver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ public function get($filename, $scope)
8787
}
8888
$theme = $theme->getParentTheme();
8989
}
90-
$configs = $this->iteratorFactory->create(['paths' => $files, 'existingIterator' => $configs]);
90+
$configs = $this->iteratorFactory->create(
91+
['paths' => array_reverse($files), 'existingIterator' => $configs]
92+
);
9193
}
9294

9395
return $configs;

0 commit comments

Comments
 (0)