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