Merge remote-tracking branch 'parent/main' into kb_migration
This commit is contained in:
commit
1fb5269501
22 changed files with 563 additions and 264 deletions
|
@ -42,7 +42,7 @@ module CaptchaConcern
|
|||
end
|
||||
|
||||
def extend_csp_for_captcha!
|
||||
policy = request.content_security_policy
|
||||
policy = request.content_security_policy&.clone
|
||||
|
||||
return unless captcha_required? && policy.present?
|
||||
|
||||
|
@ -54,6 +54,8 @@ module CaptchaConcern
|
|||
|
||||
policy.send(directive, *values)
|
||||
end
|
||||
|
||||
request.content_security_policy = policy
|
||||
end
|
||||
|
||||
def render_captcha
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue