We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be75f04 commit 5640918Copy full SHA for 5640918
src/frontend/src/lib/utils/canisterIdResolution.ts
@@ -71,16 +71,11 @@ const lookupCanister = async ({
71
}): Promise<{ ok: Principal } | "not_found"> => {
72
const HEADER_NAME = "x-ic-canister-id";
73
try {
74
- const response = await fetch(
75
- origin,
76
- // fail on redirects
77
- {
78
- redirect: "error",
79
- method: "HEAD",
80
- // do not send cookies or other credentials
81
- credentials: "omit",
82
- },
83
- );
+ const response = await fetch(origin, {
+ method: "HEAD",
+ // do not send cookies or other credentials
+ credentials: "omit",
+ });
84
85
const headerValue = response.headers.get(HEADER_NAME);
86
if (isNullish(headerValue)) {
0 commit comments