Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview thumbnail of attached image file is not shown in UI #3386

Open
leplatrem opened this issue Feb 7, 2024 · 0 comments
Open

Preview thumbnail of attached image file is not shown in UI #3386

leplatrem opened this issue Feb 7, 2024 · 0 comments
Labels

Comments

@leplatrem
Copy link
Contributor

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

@leplatrem leplatrem added the bug label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant