Kinto/kinto

Preview thumbnail of attached image file is not shown in UI

Opened this issue · 0 comments

Screenshot 2024-02-07 at 14 04 16

The URL is correct but it is blocked by Content-Security-Policy: The page’s settings blocked the loading of a resource

See

# Add Content-Security-Policy HTTP response header to protect against XSS:
# only allow from local domain:
allow_local_only = "; ".join(
(
"default-src 'self'",
"img-src data: 'self'",
"script-src 'self' 'unsafe-inline' 'unsafe-eval'",
"style-src 'self' 'unsafe-inline'",
)
)
request.response.headers["Content-Security-Policy"] = allow_local_only

(could have opened this issue but used remote-settiungs