mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 05:58:40 +00:00
Fix documentation CORS error (#1759)
* Fix CORS error * Fix CORS error * Add CORS attribute
This commit is contained in:
@@ -136,7 +136,7 @@ if [[ ! $PUBLISH ]]; then
|
||||
|
||||
# Edit docs to use CSS from CDN
|
||||
grep -l '/static/' docs/*.md | xargs sed -i.bak \
|
||||
's|/static/\([^"]\+\)|https://cdn.jsdelivr.net/npm/katex@./dist/\1" integrity="sha384-\1|'
|
||||
's|/static/\([^"]\+\)|https://cdn.jsdelivr.net/npm/katex@./dist/\1" integrity="sha384-\1" crossorigin="anonymous|'
|
||||
|
||||
# Update the version number in CDN URLs included in the README and the documentation,
|
||||
# and regenerate the Subresource Integrity hash for these files.
|
||||
|
Reference in New Issue
Block a user