From 1b5e3452360c2f5f6da1d7331c1e5857f150e6bb Mon Sep 17 00:00:00 2001 From: nyagami Date: Wed, 7 Feb 2024 18:53:52 +0700 Subject: [PATCH] more default headers (#942) more default headers --- src/plugins/helpers/fetch.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/helpers/fetch.ts b/src/plugins/helpers/fetch.ts index f87b6fc9c..489b18802 100644 --- a/src/plugins/helpers/fetch.ts +++ b/src/plugins/helpers/fetch.ts @@ -9,6 +9,12 @@ type FetchInit = { const makeInit = (init?: FetchInit) => { const defaultHeaders = { + 'Connection': 'keep-alive', + 'Accept': '*/*', + 'Accept-Language': '*', + 'Sec-Fetch-Mode': 'cors', + 'Accept-Encoding': 'gzip, deflate', + 'Cache-Control': 'max-age=0', 'User-Agent': getUserAgent(), }; if (init?.headers) {