Browse Source

Use less permissive Content Security Policy

Adjust content order
adaptive-webui-19844
Thomas Piccirello 7 years ago
parent
commit
1b5852ad0b
  1. 2
      src/webui/abstractwebapplication.cpp

2
src/webui/abstractwebapplication.cpp

@ -110,7 +110,7 @@ Http::Response AbstractWebApplication::processRequest(const Http::Request &reque @@ -110,7 +110,7 @@ Http::Response AbstractWebApplication::processRequest(const Http::Request &reque
header(Http::HEADER_X_FRAME_OPTIONS, "SAMEORIGIN");
header(Http::HEADER_X_XSS_PROTECTION, "1; mode=block");
header(Http::HEADER_X_CONTENT_TYPE_OPTIONS, "nosniff");
header(Http::HEADER_CONTENT_SECURITY_POLICY, "default-src 'self' 'unsafe-inline' 'unsafe-eval';");
header(Http::HEADER_CONTENT_SECURITY_POLICY, "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; object-src 'none';");
sessionInitialize();
if (!sessionActive() && !isAuthNeeded())

Loading…
Cancel
Save