flexmeasures.utils.http_headers
HTTP response headers that harden every response FlexMeasures sends
Functions
- flexmeasures.utils.http_headers.register_security_headers(app: Flask)
- flexmeasures.utils.http_headers.set_security_headers(response: Response) Response
Add the headers in FLEXMEASURES_SECURITY_HEADERS to a response.
A header the view (or an extension) already set is kept as it is. A header whose configured value is empty or None is not sent, so hosts can switch off each one, for example when their reverse proxy adds it already.