mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 04:42:46 +08:00
using tauri http api run plugin to fixed cors in App
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user