Show a logo set as an https URL in the console #226

Merged
jcoffey-dev merged 1 commits from fix/225-logo-url into main 2026-11-16 22:26:01 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 7059d5849b Show a logo set as an https URL in the console
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / notices (pull_request) Successful in 59s
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m22s
The console fetched /logo and showed the response as a blob. For a logo
set as an https URL the server answers /logo with a redirect to that
URL, and a fetch only follows a redirect to another site when the site
sends CORS headers, which most image hosts don't. The fetch failed and
the console fell back to the inbuxa logo, while the server's sign-in
page, which uses a plain image, showed the custom one.

Load /logo as an image instead: an image follows the redirect without
CORS. The <img> also falls back to the inbuxa logo if the custom one
stops loading later.

Fixes #225
2026-11-16 15:01:48 -07:00