UI - add CSRF protection

This commit is contained in:
bunkerity
2021-07-09 16:01:51 +02:00
parent 0d3f7d3925
commit 72a09eac6d
10 changed files with 27 additions and 19 deletions

View File

@@ -8,6 +8,7 @@
<div class="modal-body">
Are you sure you want to delete the configuration of {{ service["SERVER_NAME"] }} ?
<form id="form-delete-{{ id_server_name }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<input type="hidden" value="{{ service["SERVER_NAME"] }}" name="SERVER_NAME">
</form>
</div>