I want to implement the new X-Content-Type-Options and X-XSS-Protection security headers for Plone 5.x but I don't know where I should add them.
In Plone 4.3 I did so in the main template (https://github.com/plone/Products.CMFPlone/pull/2479), but this doesn't seem right to me for Plone 5.x as similar headers seem to be implemented in 2 different places: plone.app.layout and plone.protect:
I want to implement the new
X-Content-Type-Options
andX-XSS-Protection
security headers for Plone 5.x but I don't know where I should add them.In Plone 4.3 I did so in the main template (https://github.com/plone/Products.CMFPlone/pull/2479), but this doesn't seem right to me for Plone 5.x as similar headers seem to be implemented in 2 different places: plone.app.layout and plone.protect:
X-UA-Compatible
header; this was recently removed in https://github.com/plone/plone.app.layout/pull/154X-Frame-Options
security header https://github.com/plone/plone.protect/blob/4.0.1/plone/protect/auto.py#L146-L151@plone/framework-team I need some guidance here.