Added nonce to scripts to ensure that they are working with enabled CSP

This commit is contained in:
Jan Böhmer 2025-09-06 23:24:32 +02:00
parent 76f3c379b5
commit 90f83273da

View file

@ -121,7 +121,7 @@
{{ form_end(form) }} {{ form_end(form) }}
<script> <script nonce="{{ csp_nonce('script') }}">
// Function to initialize the field mapping page // Function to initialize the field mapping page
function initializeFieldMapping() { function initializeFieldMapping() {
const suggestions = {{ suggested_mapping|json_encode|raw }}; const suggestions = {{ suggested_mapping|json_encode|raw }};