mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-01 19:00:35 +08:00
Always add Origin to Vary header
This commit is contained in:
@@ -26,8 +26,8 @@ export async function handler(req: Request, ctx: FreshContext) {
|
||||
const c = m.cfg.cors_credentials_hosts.includes(origin);
|
||||
headers.set("Access-Control-Allow-Origin", origin);
|
||||
if (c) headers.set("Access-Control-Allow-Credentials", "true");
|
||||
headers.append("Vary", "Origin");
|
||||
}
|
||||
headers.append("Vary", "Origin");
|
||||
return new Response(res.body, {
|
||||
status: res.status,
|
||||
headers: headers,
|
||||
|
||||
Reference in New Issue
Block a user