OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix ContentSecurityPolicy for lookbook
Klaus Zanders3798b41392f3
diff --git a/config/initializers/lookbook.rb b/config/initializers/lookbook.rbindex bfd03771fe8..4530a141d58 100644--- a/config/initializers/lookbook.rb+++ b/config/initializers/lookbook.rb@@ -18,14 +18,17 @@ Rails.application.configure do]# Show pages first, then previews- config.lookbook.preview_inspector.sidebar_panels = [:pages, :previews]+ config.lookbook.preview_inspector.sidebar_panels = %i[pages previews]# Show notes first, all other panels nextconfig.lookbook.preview_inspector.drawer_panels = [:notes, "*"]config.lookbook.ui_theme = "blue"SecureHeaders::Configuration.named_append(:lookbook) do{- script_src: %w('unsafe-eval' 'unsafe-inline') # rubocop:disable Lint/PercentStringArray+ script_src: %w('unsafe-eval' 'unsafe-inline' 'self'), # rubocop:disable Lint/PercentStringArray+ script_src_elem: %w('unsafe-eval' 'unsafe-inline' 'self'), # rubocop:disable Lint/PercentStringArray+ style_src: %w('self' 'unsafe-inline'), # rubocop:disable Lint/PercentStringArray+ style_src_attr: %w('self' 'unsafe-inline') # rubocop:disable Lint/PercentStringArray}end