Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

CSP prevents loading icons from localhost with plain HTTP #357

Open
JochenLutz opened this issue Dec 9, 2022 · 0 comments
Open

CSP prevents loading icons from localhost with plain HTTP #357

JochenLutz opened this issue Dec 9, 2022 · 0 comments

Comments

@JochenLutz
Copy link

Steps to reproduce

  1. Run a web service locally (e.g. MailDev: docker run -p 1080:1080 -p 1025:1025 maildev/maildev)
  2. Add a Custom Service for that web service: URL: http://localhost:1080, Logo: http://localhost:1080/favicon.ico

Expected behavior

The icon set for the Custom Service is shown

Actual behavior

Only a broken image placeholder is shown. Console shows error “Refused to load the image '' because it violates the following Content Security Policy directive: "img-src 'self' data: https://*".”

ENVIRONMENT

Hamsket: v0.6.2
OS: Ubuntu Linux 22.04
Arch: x64
BuildVersion: fd10375 (grafted, HEAD, tag: 0.6.2, origin/fd1037521df6214a1b6b3751242cfa409c4ac236) Thu, 10 Dec 2020 17:32:22 -0800
Does this happen upstream: Since index.html is unchanged in branch master for 3 years, I expect it to also happen upstream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant