Set nonce for new and edit result table inline javascript [SCI-9057]

This commit is contained in:
wandji20 2023-08-14 17:09:08 +01:00
parent acb1a034a8
commit 6d8e4670f1
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@
</button>
<%= 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 %>
</div>
<% end %>
</div>

View file

@ -16,7 +16,7 @@
</button>
<%= 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 %>
</div>
<% end %>
</div>