mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 15:01:33 +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({
|
||||
definition: yaml.load(plugin.content) as any,
|
||||
axiosConfigDefaults: {
|
||||
adapter: adapter as any,
|
||||
adapter: (window.__TAURI__ ? adapter : ["xhr"]) as any,
|
||||
baseURL,
|
||||
headers,
|
||||
},
|
||||
|
Reference in New Issue
Block a user