CORS - Access-Control-Allow-Origin

时间:2016-04-06 21:43:59

标签: javascript cors

OPTIONS REQUEST

PUT REQUEST

Error

我的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放到了*而不是我的原始域名,但我仍然遇到了问题。

0 个答案:

没有答案