mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 20:20:16 +09:00
using tauri http api run plugin to fixed cors in App
This commit is contained in:
parent
f9a047aad4
commit
09aec7b22e
@ -62,7 +62,7 @@ export const FunctionToolService = {
|
|||||||
const api = new OpenAPIClientAxios({
|
const api = new OpenAPIClientAxios({
|
||||||
definition: yaml.load(plugin.content) as any,
|
definition: yaml.load(plugin.content) as any,
|
||||||
axiosConfigDefaults: {
|
axiosConfigDefaults: {
|
||||||
adapter: adapter as any,
|
adapter: (window.__TAURI__ ? adapter : ["xhr"]) as any,
|
||||||
baseURL,
|
baseURL,
|
||||||
headers,
|
headers,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user