diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-05-19 09:08:14 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-05-19 09:08:27 -0400 |
| commit | aafebaed0004431fe8b619d5c61902fa699dbe55 (patch) | |
| tree | 37857ae3f39de574741dd067ba803d180d956f2c | |
| parent | 9cd0d89f635dd58d40af74c4bc4530bf7a55ea9b (diff) | |
add /favicon.svg location block
| -rw-r--r-- | nginx/nginx.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 717a4691..7a5d8a8f 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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; |
