2018-11-23 17:14:15 +01:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# | Referrer Policy |
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
2020-01-03 19:36:51 +01:00
|
|
|
# Set a strict Referrer Policy to mitigate information leakage.
|
2018-11-23 17:14:15 +01:00
|
|
|
#
|
2020-01-03 19:36:51 +01:00
|
|
|
# (1) The `Referrer-Policy` header is included in responses for resources
|
|
|
|
# that are able to request (or navigate to) other resources.
|
2018-11-23 17:14:15 +01:00
|
|
|
#
|
2020-01-03 19:36:51 +01:00
|
|
|
# This includes the commonly used resource types:
|
|
|
|
# HTML, CSS, XML/SVG, PDF documents, scripts and workers.
|
|
|
|
#
|
|
|
|
# To prevent referrer leakage entirely, specify the `no-referrer` value
|
|
|
|
# instead. Note that the effect could impact analytics metrics negatively.
|
|
|
|
#
|
|
|
|
# To check your Referrer Policy, you can use an online service, such as:
|
|
|
|
# https://securityheaders.com/
|
|
|
|
# https://observatory.mozilla.org/
|
2018-11-23 17:14:15 +01:00
|
|
|
#
|
|
|
|
# https://scotthelme.co.uk/a-new-security-header-referrer-policy/
|
|
|
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
|
|
|
|
|
2019-02-13 14:31:53 +01:00
|
|
|
add_header Referrer-Policy $referrer_policy always;
|