add /favicon.svg location block

This commit is contained in:
Daniel Micay 2021-05-19 09:08:14 -04:00
parent 9cd0d89f63
commit aafebaed00

View File

@ -238,6 +238,13 @@ http {
try_files /favicon.svg =404;
}
location = /favicon.svg {
include snippets/security-headers.conf;
# avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880
add_header Cross-Origin-Resource-Policy "cross-origin" always;
add_header Cache-Control "public, max-age=604800";
}
location = /mask-icon.svg {
include snippets/security-headers.conf;
add_header Cross-Origin-Resource-Policy "same-origin" always;