Skip to content
Snippets Groups Projects
Commit eecd4bd1 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Use JS as content-type due to mimesniffing

parent a7d7ca2f
Branches
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment