Skip to content

Commit

Permalink
Add embeds initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
ferblape committed Sep 14, 2024
1 parent 7b7f2d5 commit ebf6690
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/initializers/decidim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@

# Defines the social networking services used for social sharing
config.social_share_services = %w(X Facebook WhatsApp Telegram)

config.content_security_policies_extra = {
"default-src" => %w('self' 'unsafe-inline'),
"script-src" => %w('self' 'unsafe-inline' 'unsafe-eval'),
"style-src" => %w('self' 'unsafe-inline'),
"img-src" => %w('self' *.hereapi.com data: *.amazonaws.com),
"font-src" => %w('self'),
"connect-src" => %w('self' *.hereapi.com *.jsdelivr.net *.amazonaws.com),
"frame-src" => %w('self' *.youtube.com www.youtube-nocookie.com player.vimeo.com *.google.com *.airtable.com *.flourish.studio),
"media-src" => %w('self')
}
end

# Inform Decidim about the assets folder
Expand Down

0 comments on commit ebf6690

Please sign in to comment.