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:
authorLukas Reschke <lukas@statuscode.ch>2016-07-20 22:35:02 +0300
committerGitHub <noreply@github.com>2016-07-20 22:35:02 +0300
commit020a2a6958e48f7a3a29daa2235f6729980850af (patch)
treefac1cf75e60a7d46c978b7f9aebd811c932da7ab /core
parenta17ba2f4889c92e7113606e17cc6b9f66512264f (diff)
parenta299fa38a9172f16e4bc48d4bd4f9807cec2f737 (diff)
Merge pull request #476 from nextcloud/port-same-site-cookies
[master] Port Same-Site Cookies to master
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");