mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Use JS as content-type due to mimesniffing
This commit is contained in:
parent
a7d7ca2fb3
commit
eecd4bd18e
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue