【发布时间】:2020-09-17 11:23:25
【问题描述】:
这是我收到的错误消息:
Access to XMLHttpRequest at 'http://192.168.0.4:50001/b1s/v1/Orders(334738)' from origin 'http://192.168.0.4:8000' has been blocked by CORS policy: Request header field b1s-replacecollectionsonpatch is not allowed by Access-Control-Allow-Headers in preflight response.
$.ajax({
url: GlobalLink + "Orders("+DocEntry+")",
xhrFields: { withCredentials: true },
headers: { 'B1S-ReplaceCollectionsOnPatch' :true } ,
data: jdata,
type: "PATCH",
dataType : "json",
【问题讨论】: