Skip to content

Commit

Permalink
add SVG Tiny Portable/Secure icon for BIMI
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Aug 10, 2021
1 parent 3d33626 commit 3230ad4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@ http {
add_header Cache-Control "public, max-age=604800";
}

location = /bimi.svg {
include snippets/security-headers.conf;
# allow https://bimigroup.org/bimi-generator/ to hotlink the image
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;
Expand Down
1 change: 1 addition & 0 deletions static/bimi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion validate-static
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ done
xmllint --noout static_tmp/**/*.@(html|svg|xml)
eslint static_tmp/**/!(fastboot.min.m|z-worker-pako.|pako_inflate.min.|)js
stylelint static_tmp/**/*.css
validatornu --Werror --also-check-css --also-check-svg static_tmp/**/*.@(css|html|svg)
validatornu --Werror --also-check-css --also-check-svg static_tmp/**/!(bimi).@(css|html|svg)

0 comments on commit 3230ad4

Please sign in to comment.