diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-05-25 03:34:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 03:34:58 +0300 |
commit | 6fdb64ae3ee6d3a790bf6d7a832f82784496c9f7 (patch) | |
tree | c2ca4aa48dc46bf16f7eaf47bf5da1e91d732123 /plugins | |
parent | efa9b51e48173d6f77b803afec0e0e86ee2d3cd0 (diff) |
Allow to serve manifest.json file (#19257)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Installation/ServerFilesGenerator.php | 8 |
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, ); |