我的JS:
var putCust = {
"async": true,
"crossDomain": true,
"url": "https://wmmr85ap13.execute-api.us-west-2.amazonaws.com/dev/customer",
"type": "PUT",
"headers": {
"emporio-user-key": keyInt,
},
"data": "{'lastName': " + lastPut + "}"
}
我已经将Access-Control-Allow-Origin放到了*而不是我的原始域名,但我仍然遇到了问题。