diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-11-06 11:56:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 11:56:31 +0100 |
commit | 9b1f2a4b61660f9a8be62f6296d97a856e376059 (patch) | |
tree | dd60029f03394a924d7168277582f0e6c835a9a1 /app/views/layouts/application.html.haml | |
parent | 68d4b2b83e124719f8473489ee8c1743ca848dc4 (diff) |
Add subresource integrity for JS and CSS assets (#15096)
Fix #2744
Diffstat (limited to 'app/views/layouts/application.html.haml')
-rwxr-xr-x | app/views/layouts/application.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 1f10f40c0..9501207e0 100755 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -21,10 +21,10 @@ %title= content_for?(:page_title) ? safe_join([yield(:page_title).chomp.html_safe, title], ' - ') : title - = stylesheet_pack_tag 'common', media: 'all' - = stylesheet_pack_tag current_theme, media: 'all' - = javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous' - = javascript_pack_tag "locale_#{I18n.locale}", integrity: true, crossorigin: 'anonymous' + = stylesheet_pack_tag 'common', media: 'all', crossorigin: 'anonymous' + = stylesheet_pack_tag current_theme, media: 'all', crossorigin: 'anonymous' + = javascript_pack_tag 'common', crossorigin: 'anonymous' + = javascript_pack_tag "locale_#{I18n.locale}", crossorigin: 'anonymous' = csrf_meta_tags %meta{ name: 'style-nonce', content: request.content_security_policy_nonce } |