mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-31 07:12:23 -07:00
http_sec_fetch with http_referrer fallback
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user