Merge pull request #1468 from adamoutler/http_sec_fetch

Http sec fetch
This commit is contained in:
Jokob @NetAlertX
2026-01-29 07:43:50 +11:00
committed by GitHub
13 changed files with 219 additions and 14 deletions

View File

@@ -4,11 +4,8 @@ function getApiBase()
if(apiBase == "")
{
const protocol = window.location.protocol.replace(':', '');
const host = window.location.hostname;
const port = getSetting("GRAPHQL_PORT");
apiBase = `${protocol}://${host}:${port}`;
// Default to the same-origin proxy bridge
apiBase = "/server";
}
// Remove trailing slash for consistency