Skip to content

Commit

Permalink
security headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed Nov 26, 2021
1 parent 7ec66a6 commit 22c84f0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions admin/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,16 @@ For performance, you can also activate Apache's compression module (mod_deflate)
AddOutputFilterByType DEFLATE application/json
</IfModule>
</IfModule>
Recommended security headers are (to be added to the ``apache2.conf`` file, requires ``headers`` module):

.. code-block:: text
# Security Headers, see https://securityheaders.com/
Header set Strict-Transport-Security "max-age=63072000"
Header set X-Frame-Options DENY
Header set X-XSS-Protection 1;mode=block
Header set X-Content-Type-Options nosniff
Header set Content-Security-Policy "frame-ancestors 'none'"
Header set Referrer-Policy "same-origin"
Header set Permissions-Policy "fullscreen=(self)"

0 comments on commit 22c84f0

Please sign in to comment.