Allow YouTube embeds

This commit is contained in:
2023-05-28 17:57:12 +10:00
parent 6f39d15cde
commit 4bd9501417

View File

@@ -11,7 +11,7 @@ module Adamantium
config.actions.content_security_policy[:script_src] += " https://unpkg.com/htmx.org@1.8.4 https://unpkg.com/htmx.org@1.9.2"
config.actions.content_security_policy[:script_src] += " https://cdn.jsdelivr.net/npm/alpinejs@3.12.0/dist/cdn.min.js"
config.actions.content_security_policy[:connect_src] += " https://stats.dnitza.com/api/event https://*.mapbox.com"
config.actions.content_security_policy[:frame_src] += " https://embed.music.apple.com"
config.actions.content_security_policy[:frame_src] += " https://embed.music.apple.com https://www.youtube.com"
config.actions.content_security_policy[:style_src] += " https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.css"
config.actions.content_security_policy[:child_src] = " blob:"