Skip to content

Commit

Permalink
more default headers (#942)
Browse files Browse the repository at this point in the history
more default headers
nyagami authored Feb 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e5a1753 commit 1b5e345
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/helpers/fetch.ts
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit 1b5e345

Please sign in to comment.