mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 08:05:07 +00:00
7 lines
1.6 KiB
Plaintext
7 lines
1.6 KiB
Plaintext
# Enforcing and report-only script-src share the per-request nonce ($request_id). index.html gets the same value via sub_filter.
|
|
# The sha256 source allows printing 5.12.0 layoutPdf's fixed inline print() helper (no nonce API in that package).
|
|
# CSP_FRAME_ANCESTORS, CSP_FRAME_SRC, CSP_SCRIPT_SRC, CSP_CONNECT_SRC and CSP_IMG_SRC are rendered at container start when /etc/nginx is writable (see Dockerfile / README).
|
|
# CSP_REPORT_URI, when set, is added as report-uri on the report-only header by docker-entrypoint.d/25-csp-report-uri.sh.
|
|
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'nonce-$request_id' 'sha256-+M0fGRkOqgYlCQCff9oNQn6k6a7Si4Et8iofLMceadE=' 'wasm-unsafe-eval' ${CSP_SCRIPT_SRC}; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https: ${CSP_IMG_SRC}; font-src 'self' data:; connect-src 'self' blob: https: wss: ${CSP_CONNECT_SRC}; frame-src 'self' blob: about: ${CSP_FRAME_SRC}; worker-src 'self' blob:; frame-ancestors ${CSP_FRAME_ANCESTORS}; object-src 'none'; base-uri 'self'; form-action 'none'" always;
|
|
add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' 'nonce-$request_id' 'sha256-+M0fGRkOqgYlCQCff9oNQn6k6a7Si4Et8iofLMceadE=' 'wasm-unsafe-eval' ${CSP_SCRIPT_SRC}; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https: ${CSP_IMG_SRC}; font-src 'self' data:; connect-src 'self' blob: https: wss: ${CSP_CONNECT_SRC}; frame-src 'self' blob: about: ${CSP_FRAME_SRC}; worker-src 'self' blob:; frame-ancestors ${CSP_FRAME_ANCESTORS}; object-src 'none'; base-uri 'self'; form-action 'none'" always;
|