New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APP:// CORS问题 #158
Labels
bug
Something isn't working
version up
Pro version features of the devolution of the open source version
Comments
zmh-program
added
bug
Something isn't working
browser-compatibility
Browser compatibility
labels
Apr 2, 2024
自定义请求头一般是不会影响的,目测可能是app:// scheme的问题 |
又测试了一下,好像不是 复现代码: await fetch("https://api.chatnio.net/v1/models",{
method:"GET",
headers:{
}
}).then(t=>t.json()).then(t=>console.log("No header",t))
await fetch("https://api.chatnio.net/v1/models",{
method:"GET",
headers:{
"X-Stainless-Lang":"js"
}
}).then(t=>t.json()).then(t=>console.log("Has header",t)) |
这是你的app的问题吧 |
在 https://chatnio.net 上跑也一样 |
浏览器? |
是的 |
OK 复现到了 等我处理完 #77 来处理 |
商业版和chatnio官网已经修复,功能将由 @Sh1n3zZ 下放开源版。 |
zmh-program
added
version up
Pro version features of the devolution of the open source version
and removed
browser-compatibility
Browser compatibility
labels
Apr 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
version up
Pro version features of the devolution of the open source version
使用OpenAI Node API库请求时会导致CORS错误。
X-Stainless-.......的请求头是由OpenAI的官方库引入的
The text was updated successfully, but these errors were encountered: