add nonce to script

This commit is contained in:
Nicolas Demangeat 2023-08-24 12:09:05 +02:00
parent ef897b17b2
commit 036d7109c7
13 changed files with 13 additions and 13 deletions

View file

@ -58,7 +58,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -35,7 +35,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -88,7 +88,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -33,7 +33,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -84,7 +84,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -91,7 +91,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -342,7 +342,7 @@
@if($invoiceModel->status === \App\Enums\Invoices\InvoiceStatusEnum::opened || $invoiceModel->status === null)
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -62,7 +62,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -64,7 +64,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -61,7 +61,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -137,7 +137,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -55,7 +55,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')

View file

@ -121,7 +121,7 @@
</div>
@push('scripts')
<script>
<script nonce="{{ $nonce }}">
document.addEventListener("DOMContentLoaded", () => {
// Submit button clone.
const submit = document.getElementById('formSubmit')