Skip to content

Commit 3230ad4

Browse files
committed
1 parent 3d33626 commit 3230ad4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

nginx/nginx.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,13 @@ http {
244244
add_header Cache-Control "public, max-age=604800";
245245
}
246246

247+
location = /bimi.svg {
248+
include snippets/security-headers.conf;
249+
# allow https://bimigroup.org/bimi-generator/ to hotlink the image
250+
add_header Cross-Origin-Resource-Policy "cross-origin" always;
251+
add_header Cache-Control "public, max-age=604800";
252+
}
253+
247254
location = /mask-icon.svg {
248255
include snippets/security-headers.conf;
249256
add_header Cross-Origin-Resource-Policy "same-origin" always;

static/bimi.svg

Lines changed: 1 addition & 0 deletions
Loading

validate-static

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ done
1616
xmllint --noout static_tmp/**/*.@(html|svg|xml)
1717
eslint static_tmp/**/!(fastboot.min.m|z-worker-pako.|pako_inflate.min.|)js
1818
stylelint static_tmp/**/*.css
19-
validatornu --Werror --also-check-css --also-check-svg static_tmp/**/*.@(css|html|svg)
19+
validatornu --Werror --also-check-css --also-check-svg static_tmp/**/!(bimi).@(css|html|svg)

0 commit comments

Comments
 (0)