Skip to content

Commit

Permalink
Content-Security-Policy: allow images from data: URLs (#772)
Browse files Browse the repository at this point in the history
QR displayed in odk-central-frontend are displayed with src=data:...

Closes #629
  • Loading branch information
alxndrsn authored Nov 11, 2024
1 parent 2d95a61 commit fb02423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/nginx/common-headers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# They are included here to ease interpretation of violation reports.
#
# N.B. a separate CSP is defined for Enketo in odk.conf.template
add_header Content-Security-Policy-Report-Only "default-src 'none'; connect-src 'self'; font-src 'self'; frame-src 'self' https://getodk.github.io/central/news.html; img-src *; manifest-src 'none'; media-src 'none'; object-src 'none'; script-src 'self'; style-src 'self'; style-src-attr 'unsafe-inline'; report-uri /csp-report";
add_header Content-Security-Policy-Report-Only "default-src 'none'; connect-src 'self'; font-src 'self'; frame-src 'self' https://getodk.github.io/central/news.html; img-src * data:; manifest-src 'none'; media-src 'none'; object-src 'none'; script-src 'self'; style-src 'self'; style-src-attr 'unsafe-inline'; report-uri /csp-report";

# If changing these headers, please apply the same updates to enketo
# location(s) in odk.conf.template
Expand Down

0 comments on commit fb02423

Please sign in to comment.