missuo / FreeDuckDuckGo

Use DuckDuckGo for free with GPT-3.5-Turbo.
GNU General Public License v3.0
220 stars 70 forks source link

请教下这个api支持哪个web端?实测docker搭建在同服务器的next-web报错,会出现OCRS 跨域错误 #14

Open chris7395328 opened 6 months ago

chris7395328 commented 6 months ago

docker搭建在同服务器的next-web报错,会出现OCRS 跨域错误,别的翻译插件调用api没有问题

控制台提示http://192.168.123.232:3456/v1/chat/completions' from origin 'http://192.168.123.232:3000/' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

weisonyoung commented 5 months ago

https://github.com/missuo/FreeDuckDuckGo/issues/6#issuecomment-2100431574