add /favicon.svg location block
This commit is contained in:
parent
9cd0d89f63
commit
aafebaed00
@ -238,6 +238,13 @@ http {
|
|||||||
try_files /favicon.svg =404;
|
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 {
|
location = /mask-icon.svg {
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user