From a299fa38a9172f16e4bc48d4bd4f9807cec2f737 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 20 Jul 2016 17:37:30 +0200 Subject: [master] Port Same-Site Cookies to master Fixes https://github.com/nextcloud/server/issues/50 --- core/js/config.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/js') 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"); -- cgit v1.2.3