This commit is contained in:
2024-08-12 13:53:11 +08:00
parent 576b8c1208
commit db59b34bbd

View File

@@ -21,7 +21,8 @@ function handle_auth(req: Request, ctx: FreshContext) {
(u.pathname.startsWith("/api/export/gallery/zip/") ||
u.pathname.match(/^\/api\/file\/\d+/) ||
u.pathname.match(/^\/api\/thumbnail\/\d+$/)) &&
req.method === "GET"
req.method === "GET" &&
u.searchParams.has("share")
) {
token = u.searchParams.get("share");
is_from_cookie = false;