{"draft":null,"from":85,"to":86,"files":[{"path":"client/src/api.ts","added":5,"removed":1,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -174,7 +174,7 @@\n \t\treturn {\n \t\t\t// Which client made the call (#29); the mods send theirs too.\n \t\t\t\"x-abso-client\": `abso-cli/${clientVersion()}`,\n-\t\t\t...(this.config.token ? { authorization: `Bearer ${this.config.token}` } : {}),\n+\t\t\t...(this.config.token && !this.config.visitor ? { authorization: `Bearer ${this.config.token}` } : {}),\n \t\t\t...(contentType ? { \"content-type\": contentType } : {}),\n \t\t};\n \t}\n@@ -187,6 +187,9 @@\n \t\tatLeastMs = 0,\n \t): Promise<T> {\n \t\tlet res: Response | undefined;\n+\t\t// A visitor folder only reads, and follows no redirect, so nothing it sends goes anywhere it didn't name.\n+\t\tconst visitor = this.config.visitor === true;\n+\t\tif (visitor && method !== \"GET\") throw new ApiError(`${path}: a folder that reads signed out sends only reads`);\n \t\tconst sent = body === undefined ? undefined : JSON.stringify(body);\n \t\tconst timeoutMs = Math.max(atLeastMs, timeoutFor(this.timeoutMs, sent));\n \t\t// A connection that never opened is tried once more, IPv4 first (#37, GAME - UI/UX: one IPv6\n@@ -198,6 +201,7 @@\n \t\t\t\t\tmethod,\n \t\t\t\t\theaders: this.headers(sent === undefined ? undefined : \"application/json\"),\n \t\t\t\t\t...(sent === undefined ? {} : { body: sent }),\n+\t\t\t\t\t...(visitor ? { redirect: \"error\" as const, credentials: \"omit\" as const } : {}),\n \t\t\t\t\tsignal: AbortSignal.timeout(timeoutMs),\n \t\t\t\t});\n \t\t\t} catch (err) {"}],"unmatched":[]}