Automatically upgrade to HTTPS in production
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-25 08:08:09 +02:00
parent 616c063d24
commit b9fae8e2aa
2 changed files with 17 additions and 0 deletions

View File

@ -21,6 +21,14 @@ export class APIClient {
return URL;
}
/**
* Check out whether the backend is accessed through
* HTTPS or not
*/
static IsBackendSecure(): boolean {
return this.backendURL().startsWith("https");
}
/**
* Perform a request on the backend
*/