Pylint no-else-return refactoring: tenth (and so far last) set of files
[check_mk.git] / .werks / 6774
blobe79ac4d59b18f61328b2af523ad6332260741f57
1 Title: Add Content-Security-Policy header to prevent some cross site scripting and injection attacks
2 Level: 1
3 Component: multisite
4 Compatible: compat
5 Edition: cre
6 Version: 1.6.0i1
7 Date: 1538120513
8 Class: security
10 When requesting pages from the GUI a <tt>Content-Security-Policy</tt> is now been set in the HTTP
11 response. Using this mechanism the application can tell the browser which things are allowed to
12 be done by the web page in the context of the browser.
14 We are now, for example limiting the URLs where AJAX calls can be made to or the URLs which can
15 be used as form targets. This helps to prevent some XSS and other injection attacks.
17 The configuration of this policy is made in the apache configuration file
18 <tt>etc/apache/conf.d/security.conf</tt>. In case you want to have a look at the details or
19 want to extend the policy somehow you may edit the file in the context of your site configuration.
20 To apply the changes you need to restart your site apache using <tt>omd restart apache</tt>.
22 In case of trouble please let us know. We can probably adapt the default configuration to solve
23 common issues with this policy for all users.
25 One thing that may affect users that include Check_MK pages on other web pages using frames or
26 iframes: We set the <tt>frame-ancestors</tt> option to <tt>'self'</tt> which means that only pages
27 with the same protocol, url and port as the Check_MK page may refer to Check_MK pages. You can
28 extend this statement with the URLs you want to allow.