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/home | |
parent | 68d4b2b83e124719f8473489ee8c1743ca848dc4 (diff) |
Add subresource integrity for JS and CSS assets (#15096)
Fix #2744
Diffstat (limited to 'app/views/home')
-rw-r--r-- | app/views/home/index.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index 30c7aab19..94cc782b2 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -1,12 +1,12 @@ - content_for :header_tags do - = preload_link_tag asset_pack_path('features/getting_started.js'), crossorigin: 'anonymous' - = preload_link_tag asset_pack_path('features/compose.js'), crossorigin: 'anonymous' - = preload_link_tag asset_pack_path('features/home_timeline.js'), crossorigin: 'anonymous' - = preload_link_tag asset_pack_path('features/notifications.js'), crossorigin: 'anonymous' + = preload_pack_asset 'features/getting_started.js', crossorigin: 'anonymous' + = preload_pack_asset 'features/compose.js', crossorigin: 'anonymous' + = preload_pack_asset 'features/home_timeline.js', crossorigin: 'anonymous' + = preload_pack_asset 'features/notifications.js', crossorigin: 'anonymous' %meta{name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key} = render_initial_state - = javascript_pack_tag 'application', integrity: true, crossorigin: 'anonymous' + = javascript_pack_tag 'application', crossorigin: 'anonymous' .app-holder#mastodon{ data: { props: Oj.dump(default_props) } } %noscript |