add content security policy to allow showing remote images for game importing

This commit is contained in:
Huskydog9988
2025-03-11 20:03:28 -04:00
parent 08164cae68
commit 2b7bc6965d
3 changed files with 485 additions and 10 deletions
+14 -1
View File
@@ -35,7 +35,7 @@ export default defineNuxtConfig({
extends: ["./drop-base"],
// Module config from here down
modules: ["@nuxt/content", "vue3-carousel-nuxt"],
modules: ["@nuxt/content", "vue3-carousel-nuxt", "nuxt-security"],
carousel: {
prefix: "Vue",
@@ -56,4 +56,17 @@ export default defineNuxtConfig({
},
},
},
security: {
headers: {
contentSecurityPolicy: {
"img-src": [
"'self'",
"data:",
"https://www.giantbomb.com",
"https://images.pcgamingwiki.com",
],
},
},
},
});