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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/config.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/config.php b/core/js/config.php
index 197047ed8b8..c2e6213e8f7 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -32,6 +32,10 @@
*
*/
+if(!\OC::$server->getRequest()->passesStrictCookieCheck()) {
+ die();
+}
+
// Set the content type to Javascript
header("Content-type: text/javascript");