From: Lukas Reschke Date: Thu, 17 Apr 2014 08:40:19 +0000 (+0200) Subject: Use JS as content-type due to mimesniffing X-Git-Tag: v7.0.0alpha2~404^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eecd4bd18e49ff7c3e93961574ed9b6f7adb3b1c;p=nextcloud-server.git Use JS as content-type due to mimesniffing --- diff --git a/settings/js/apps-custom.php b/settings/js/apps-custom.php index c25148cdde5..2b2f256b39f 100644 --- a/settings/js/apps-custom.php +++ b/settings/js/apps-custom.php @@ -9,8 +9,8 @@ // Check if admin user OC_Util::checkAdminUser(); -// Set the content type to JSON -header('Content-type: application/json'); +// Set the content type to JS +header('Content-type: application/javascript'); // Disallow caching header("Cache-Control: no-cache, must-revalidate");