mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 00:42:51 +10:00
add content security policy to allow showing remote images for game importing
This commit is contained in:
+14
-1
@@ -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",
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user