Skip to content

Commit

Permalink
fix(audio): stories + CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelodelain committed May 14, 2024
1 parent f6f77b2 commit 8ecfc2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/molecules/VRoadizAudio/Default.stories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import spotify from '~/assets/stories/fixtures/documents/spotify-01.json'
<template>
<NuxtStory>
<NuxtStoryVariant title="Native">
<VAudio :document="audio" />
<VRoadizAudio :document="audio" />
</NuxtStoryVariant>
<NuxtStoryVariant title="Deezer">
<VAudio :document="deezer" />
<VRoadizAudio :document="deezer" />
</NuxtStoryVariant>
<NuxtStoryVariant title="Soundcloud">
<VAudio :document="soundcloud" />
<VRoadizAudio :document="soundcloud" />
</NuxtStoryVariant>
<NuxtStoryVariant title="Spotify">
<VAudio :document="spotify" />
<VRoadizAudio :document="spotify" />
</NuxtStoryVariant>
</NuxtStory>
</template>
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default defineNuxtConfig({
// https://developer.mozilla.org/fr/docs/Web/HTTP/CSP
'Content-Security-Policy': [
// Only allows these iframe origins
"frame-src 'self' *.youtube.com *.vimeo.com *.instagram.com *.soundcloud.com *.google.com",
"frame-src 'self' *.youtube.com *.vimeo.com *.instagram.com *.soundcloud.com *.google.com *.deezer.com *.spotify.com",
// Only allows these script origins
//"script-src 'self' 'unsafe-inline' *.google.com *.googleapis.com *.gstatic.com",
// Only allows these images origins
Expand Down

0 comments on commit 8ecfc2f

Please sign in to comment.