Fixed CSP rules to allow the WASM loading for the barcode scanner

This commit is contained in:
Jan Böhmer 2025-01-04 18:23:57 +01:00
parent 39b5240934
commit 8826ba6729

View file

@ -51,12 +51,16 @@ nelmio_security:
img-src:
- '*'
- 'data:'
# Required for be able to load pictures in the QR code scanner
- 'blob:'
style-src:
- 'self'
- 'unsafe-inline'
- 'data:'
script-src:
- 'self'
# Required for loading the Wasm for the barcode scanner:
- 'wasm-unsafe-eval'
object-src:
- 'self'
- 'data:'