Skip to content

Commit

Permalink
Removed redundant x-requested-with from api.createHeaders() until…
Browse files Browse the repository at this point in the history
… more GET APIs are added for assessment ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
  • Loading branch information
kudo-sync-bot committed Jan 14, 2025
1 parent 47d1b7d commit 3a1e393
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.14.6
// @version 2025.1.14.7
// @license MIT
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
Expand Down Expand Up @@ -3053,7 +3053,6 @@
'Host': new URL(apis[api].endpoints?.completions || apis[api].endpoint).hostname,
'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors'
})
else if (apis[api].method == 'GET') headers['x-requested-with'] = 'XMLHttpRequest'
Object.assign(headers, apis[api].expectedOrigin.headers) // API-specific ones
if (api == 'OpenAI') headers.Authorization = `Bearer ${config.openAIkey}`
return headers
Expand Down

0 comments on commit 3a1e393

Please sign in to comment.