Skip to content

Commit 8826ba6

Browse files
committed
Fixed CSP rules to allow the WASM loading for the barcode scanner
1 parent 39b5240 commit 8826ba6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/packages/nelmio_security.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ nelmio_security:
5151
img-src:
5252
- '*'
5353
- 'data:'
54+
# Required for be able to load pictures in the QR code scanner
55+
- 'blob:'
5456
style-src:
5557
- 'self'
5658
- 'unsafe-inline'
5759
- 'data:'
5860
script-src:
5961
- 'self'
62+
# Required for loading the Wasm for the barcode scanner:
63+
- 'wasm-unsafe-eval'
6064
object-src:
6165
- 'self'
6266
- 'data:'

0 commit comments

Comments
 (0)