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/googlegpt]
kudo-sync-bot committed Jan 14, 2025
1 parent 7533104 commit 313d0af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chatgpt/googlegpt/googlegpt.user.js
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.14.6
// @version 2025.1.14.7
// @license MIT
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
@@ -3388,7 +3388,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

0 comments on commit 313d0af

Please sign in to comment.