OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/helpers/enterprise_trial_helper.rb

18 lines
497 B

module EnterpriseTrialHelper
def chargebee_content_security_policy
script_src = %w(js.chargebee.com)
default_src = script_src + ["#{OpenProject::Configuration.enterprise_chargebee_site}.chargebee.com"]
append_content_security_policy_directives(
script_src:,
style_src: default_src,
frame_src: default_src
)
end
def youtube_content_security_policy
append_content_security_policy_directives(
frame_src: %w(https://www.youtube.com)
)
end
end