openec2 Article Description
Various internet articles recommend security headers be added to all websites.
I have given configurations that appear to be okay with Nginx and Apache2.4.x
It is important to test all parts of a website as these configurations can kick you out of some functions.
Always test, for example, your use of a Contact Form.
I noticed that cloning a page or post will make the clone, but immediately show the home page.
This can be averted by temporarily commenting out the security headers for a new development.
References:
https://securityheaders.com
https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html
https://content-security-policy.com/examples/nginx/
https://www.invicti.com/blog/web-security/content-security-policy/
https://www.studytonight.com/apache-guide/add-http-security-headers-in-apache-web-server
https://forum.level1techs.com/t/infrastructure-series-http-s-security-headers-you-should-use-them-nginx/171235
These are a bit of a mix, but seem to have a lot in common