Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2022-05-25 03:34:58 +0300
committerGitHub <noreply@github.com>2022-05-25 03:34:58 +0300
commit6fdb64ae3ee6d3a790bf6d7a832f82784496c9f7 (patch)
treec2ca4aa48dc46bf16f7eaf47bf5da1e91d732123
parentefa9b51e48173d6f77b803afec0e0e86ee2d3cd0 (diff)
Allow to serve manifest.json file (#19257)
-rw-r--r--plugins/Installation/ServerFilesGenerator.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/Installation/ServerFilesGenerator.php b/plugins/Installation/ServerFilesGenerator.php
index 9c14da60be..8a264d4aed 100644
--- a/plugins/Installation/ServerFilesGenerator.php
+++ b/plugins/Installation/ServerFilesGenerator.php
@@ -56,11 +56,17 @@ Header set Cache-Control \"Cache-Control: private, no-cache, no-store\"
</IfModule>
</Files>";
+ $allowManifestFile =
+ "# Allow to serve manifest.json\n" .
+ "<Files \"manifest.json\">\n" .
+ $allow . "\n" .
+ "</Files>\n";
+
$directoriesToProtect = array(
'/js' => $allowAny . $noCachePreview,
'/libs' => $denyAll . $allowStaticAssets,
'/vendor' => $denyAll . $allowStaticAssets,
- '/plugins' => $denyAll . $allowStaticAssets,
+ '/plugins' => $denyAll . $allowStaticAssets . $allowManifestFile,
'/misc/user' => $denyAll . $allowStaticAssets,
'/node_modules' => $denyAll . $allowStaticAssets,
);