Skip to content

Commit 8404d91

Browse files
committed
fix: update CSP
1 parent e9214bc commit 8404d91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

netlify.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ for = "/*"
1717
# - `connect-src data:` is required for asciinema (asciicast)
1818
# - `connect-src https://t.counter.dev` is required for counter.dev analytics
1919
# - `object-src 'self';` has to be set to enable PDF preview in Chrome
20+
# - `img-src https://github.com` has to be set for the `R CMD check` badge in the README
21+
# - `img-src https://r-pkg.org` has to be set for the CRAN badge in the README
2022
# - `script-src 'unsafe-eval'` is required for MathJax, cf. https://github.com/mathjax/MathJax/issues/1988#issuecomment-384978927
2123
# - `script-src https://rpkg.dev` is required for counter.dev analytics
2224
# - `style-src 'unsafe-inline'` is required for MathJax, cf. https://github.com/mathjax/MathJax/issues/1988#issuecomment-581567775
@@ -26,7 +28,7 @@ Content-Security-Policy = '''
2628
default-src 'none';
2729
connect-src 'self' data: https://t.counter.dev;
2830
font-src 'self';
29-
img-src 'self' data: https://r-pkg.org;
31+
img-src 'self' data: https://github.com https://r-pkg.org;
3032
manifest-src 'self';
3133
object-src 'self';
3234
script-src 'self' 'unsafe-eval' https://rpkg.dev;

0 commit comments

Comments
 (0)