summaryrefslogtreecommitdiff
path: root/packages/frontend/src/index.html
diff options
context:
space:
mode:
authorCenTdemeern1 <timo.herngreen@gmail.com>2024-10-15 21:11:55 +0200
committerCenTdemeern1 <timo.herngreen@gmail.com>2024-12-08 19:15:40 +0100
commit051073a046c2c8802b903c08a4ddd5b6b9355e46 (patch)
tree96aa61ee69ee30244a2cb435a8022e20fafa1058 /packages/frontend/src/index.html
parentAdd the ruffle-player to the hotkey ignorelist (diff)
downloadsharkey-051073a046c2c8802b903c08a4ddd5b6b9355e46.tar.gz
sharkey-051073a046c2c8802b903c08a4ddd5b6b9355e46.tar.bz2
sharkey-051073a046c2c8802b903c08a4ddd5b6b9355e46.zip
Always load Ruffle from CDN and add it as a dependency
This commit has a long story behind it. Removes Ruffle from /scripts/ and instead always loads the installed version from unpkg, Ruffle's preferred CDN. This requires having unpkg in the CORS rules. Ruffle is also loaded from the CDN in dev mode. To help with this an externalPackages array has been added to the vite dev config. Co-authored-by: Julia Johannesen <julia@insertdomain.name>
Diffstat (limited to 'packages/frontend/src/index.html')
-rw-r--r--packages/frontend/src/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/index.html b/packages/frontend/src/index.html
index 55d6b6cffd..31dfc292d7 100644
--- a/packages/frontend/src/index.html
+++ b/packages/frontend/src/index.html
@@ -18,11 +18,11 @@
http-equiv="Content-Security-Policy"
content="default-src 'self' https://newassets.hcaptcha.com/ https://challenges.cloudflare.com/ http://localhost:7493/;
worker-src 'self' blob:;
- script-src 'self' 'unsafe-eval' https://*.hcaptcha.com https://challenges.cloudflare.com https://esm.sh https://cdn.jsdelivr.net;
+ script-src 'self' 'unsafe-eval' https://*.hcaptcha.com https://challenges.cloudflare.com https://esm.sh https://cdn.jsdelivr.net https://unpkg.com;
style-src 'self' 'unsafe-inline';
img-src 'self' data: blob: www.google.com xn--931a.moe localhost:3000 localhost:5173 127.0.0.1:5173 127.0.0.1:3000 activitypub.software secure.gravatar.com avatars.githubusercontent.com;
media-src 'self' localhost:3000 localhost:5173 127.0.0.1:5173 127.0.0.1:3000;
- connect-src 'self' localhost:3000 localhost:5173 127.0.0.1:5173 127.0.0.1:3000 https://newassets.hcaptcha.com https://api.listenbrainz.org https://api.friendlycaptcha.com;
+ connect-src 'self' localhost:3000 localhost:5173 127.0.0.1:5173 127.0.0.1:3000 https://newassets.hcaptcha.com https://api.listenbrainz.org https://api.friendlycaptcha.com https://unpkg.com;
frame-src *;"
/>
<meta property="og:site_name" content="[DEV BUILD] Misskey" />