我正在使用以下标题
response.addHeader("Access-Control-Allow-Origin", "*");
response.addHeader("Access-Control-Allow-Methods":"GET, POST, PUT,OPTIONS");
response.addHeader("Access-Control-Allow-Headers","X-Requested-With, Content-Type, Accept, Origin");
var params = "name=pari123&action=initaction&gameId=slotreel3")
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(params);
我正在以下列方式请求我在这里做错了什么?