In the context of restbase sunsetting, we need to re-implement the logic for emitting security headers, which is currently defined in https://phabricator.wikimedia.org/diffusion/GRES/browse/master/lib/security_response_header_filter.js.
Before we port this logic, we should re-assess whether it is still up to date.