Skip to content

Commit

Permalink
EPBR-7598 Add csp option form action and frame ancestors
Browse files Browse the repository at this point in the history
  • Loading branch information
Christine-horrocks committed Dec 9, 2024
1 parent a441a55 commit cad4575
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ csp_options = {
style_src: "'nonce-#{ENV['SCRIPT_NONCE']}' 'self'",
img_src: "'self' data:",
report_uri: Sentry.csp_report_uri,
report_ratio: 0.01
report_ratio: 0.01,
frame_ancestors: 'none',
form_action: "'self'"
}.delete_if { |_, value| value.nil? || value=='' }

use Middleware::ContentSecurityPolicy, **Helper::GoogleCsp.add_options_for_google_analytics(csp_options)
Expand Down

0 comments on commit cad4575

Please sign in to comment.