Fixed FetchRequest when using credentials (#3897).
This commit is contained in:
parent
c05a84aa65
commit
88e8124c37
@ -35,7 +35,7 @@ export async function getUrl(req: FetchRequest, _signal?: FetchCancelSignal): Pr
|
||||
operation: "request"
|
||||
});
|
||||
|
||||
assert(!req.credentials || req.allowInsecureAuthentication, "insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", {
|
||||
assert(protocol === "https" || !req.credentials || req.allowInsecureAuthentication, "insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", {
|
||||
operation: "request"
|
||||
});
|
||||
|
||||
|
@ -19,7 +19,7 @@ export async function getUrl(req: FetchRequest, signal?: FetchCancelSignal): Pro
|
||||
operation: "request"
|
||||
});
|
||||
|
||||
assert(!req.credentials || req.allowInsecureAuthentication, "insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", {
|
||||
assert(protocol === "https" || !req.credentials || req.allowInsecureAuthentication, "insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", {
|
||||
operation: "request"
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user