Add ng-csp to angularjs legacy frontend

pull/6381/head
Oliver Günther 6 years ago
parent e3903a70e6
commit 0a6df24346
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 5
      app/helpers/angular_helper.rb

@ -41,9 +41,10 @@ module AngularHelper
end
if block_given?
content_tag(type, options.merge('ng-app': 'OpenProjectLegacy'), &block)
merged_options = options.merge('ng-app': 'OpenProjectLegacy', 'ng-csp': '')
content_tag(type, merged_options, &block)
else
'ng-app="OpenProjectLegacy"'.html_safe
'ng-app="OpenProjectLegacy" ng-csp'.html_safe
end
end
end

Loading…
Cancel
Save