mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
Mixed Content w/ HTTPS #1224
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Fusseldieb on GitHub (Jun 12, 2024).
Since one of the last updates to 3.x, OpenWebUI no longer loads. The DevTools console throws:
The fetch function in question makes a request to an API endpoint that has a constant in it which is hardcoded as http:
0917fa6f4a/src/lib/constants.ts (L7)This causes issues, as the page is trying to load a http resource over a https page, essentially.
A potential solution would be getting the protocol to correctly prepend http or https, depending on the instance. Maybe
location.protocol?@rbrinson commented on GitHub (Jun 12, 2024):
I just posted about the same issue (https://github.com/open-webui/open-webui/issues/3074). So, me too!
@Altair-Bueno commented on GitHub (Jun 12, 2024):
Indeed, constructing URLs with string templates is always the cause for these annoying bugs. In addition, i would also modify the
WEBUI_HOSTNAMEconstant, as it also assumes we are using the port 8080. Although i would personally remove it...