var settings = {
"async": true,
"crossDomain": true,
"url": "http://XXXX.com/login/",
"method": "POST",
"headers": {
"origin": "http://XXX.com",
"upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
"content-type": "application/x-www-form-urlencoded",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"referer": "http://analytics-prodocker.eu-central-1.elasticbeanstalk.com/login/",
"accept-encoding": "gzip, deflate",
"accept-language": "en-US,en;q=0.8,nl;q=0.6",
"cache-control": "no-cache"
},
"data": {
"username": "XXX",
"password": "XXX"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});