diff --git a/app/views/result_tables/_edit.html.erb b/app/views/result_tables/_edit.html.erb index 72abdc859..2187c4bad 100644 --- a/app/views/result_tables/_edit.html.erb +++ b/app/views/result_tables/_edit.html.erb @@ -17,7 +17,7 @@ <%= f.button t("general.save"), class: 'btn btn-primary save-result' %> - <%= javascript_include_tag 'results/result_tables/edit' %> + <%= javascript_include_tag 'results/result_tables/edit', nonce: true %> <% end %> diff --git a/app/views/result_tables/_new.html.erb b/app/views/result_tables/_new.html.erb index b00eac0ea..b3e20eb9c 100644 --- a/app/views/result_tables/_new.html.erb +++ b/app/views/result_tables/_new.html.erb @@ -16,7 +16,7 @@ <%= f.button t("result_tables.new.create"), class: 'btn btn-primary save-result' %> - <%= javascript_include_tag 'results/result_tables/new' %> + <%= javascript_include_tag 'results/result_tables/new', nonce: true %> <% end %>