且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IBM Watson Conversation API:“在飞行前响应中,Access-Control-Allow-Headers不允许请求标头字段授权”

更新时间:2022-11-12 10:33:28

浏览器拒绝发送您的请求,因为您将请求发送到的服务器尚未启用CORS,至少没有启用这些标头。

The browser is refusing to send your request because the server you're sending the request to hasn't enabled CORS, at least not with those headers.

唯一无需修改目标服务器的解决方案是编写您自己的服务器,代表客户端进行请求。

The only solution without modifying the server you're targeting is to write your own server that makes the request on behalf of the client.