Skip to content

Commit 1c59441

Browse files
committed
Removed redundant x-requested-with from api.createHeaders() until more GET APIs are added for assessment ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent c8fb181 commit 1c59441

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.1.14.6
151+
// @version 2025.1.14.7
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -3053,7 +3053,6 @@
30533053
'Host': new URL(apis[api].endpoints?.completions || apis[api].endpoint).hostname,
30543054
'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors'
30553055
})
3056-
else if (apis[api].method == 'GET') headers['x-requested-with'] = 'XMLHttpRequest'
30573056
Object.assign(headers, apis[api].expectedOrigin.headers) // API-specific ones
30583057
if (api == 'OpenAI') headers.Authorization = `Bearer ${config.openAIkey}`
30593058
return headers

0 commit comments

Comments
 (0)