diff options
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/nginx.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 3f87f22e..6a6dbb1c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -215,6 +215,9 @@ http { } location = /favicon.ico { + if ($http_accept ~ "image/svg\+xml") { + rewrite ^ /favicon.svg last; + } 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; |
