set up SRI for future use by CSP v3
This commit is contained in:
@@ -74,7 +74,7 @@ http {
|
||||
|
||||
map $http_cookie $preload_resources {
|
||||
"~*__Host-preload=1" "";
|
||||
default "</main.css>; rel=preload; as=style, </fonts/roboto-v20-regular-latin.woff2>; rel=preload; as=font; crossorigin, </fonts/roboto-v20-bold-latin.woff2>; rel=preload; as=font; crossorigin, </mask-icon.svg>; rel=preload; as=image";
|
||||
default "<{{path|/main.css}}>; rel=preload; as=style, </fonts/roboto-v20-regular-latin.woff2>; rel=preload; as=font; crossorigin, </fonts/roboto-v20-bold-latin.woff2>; rel=preload; as=font; crossorigin, <{{path|/mask-icon.svg}}>; rel=preload; as=image";
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -259,7 +259,7 @@ http {
|
||||
add_header Cache-Control "public, max-age=604800";
|
||||
}
|
||||
|
||||
location = /mask-icon.svg {
|
||||
location = {{path|/mask-icon.svg}} {
|
||||
include snippets/security-headers.conf;
|
||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
|
||||
Reference in New Issue
Block a user