Skip to content

Commit

Permalink
chore: cloudflare stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeraa committed Jul 14, 2024
1 parent f0ce8ce commit a81dc95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ useHead({
],
});
useHead({
script: [
{ src: "/cdn-cgi/challenge-platform/scripts/jsd/main.js", crossorigin: "anonymous", referrerpolicy: "origin" },
],
}, { mode: "client" });
const { t } = useI18n();
useSeoMeta({
Expand Down
7 changes: 5 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ export default defineNuxtConfig({
contentSecurityPolicy: {
"img-src": ["'self'", "data:", "https:"],
"script-src": [
"'self'", // backwards compatibility for older browsers that don't support strict-dynamic
"'nonce-{{nonce}}'",
"'self'",
"https:",
"'unsafe-inline'",
"'strict-dynamic'",
"'nonce-{{nonce}}'",
"'unsafe-eval'",
],
"script-src-attr": ["'self'"],
},
Expand Down

0 comments on commit a81dc95

Please sign in to comment.