mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-01 07:49:33 +00:00
Added nonce to scripts to ensure that they are working with enabled CSP
This commit is contained in:
parent
76f3c379b5
commit
90f83273da
1 changed files with 19 additions and 19 deletions
|
|
@ -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 }};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue