Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2015-05-12 11:23:08 +02:00
commit e0c9173f9a
5 changed files with 20 additions and 5 deletions

View file

@ -558,10 +558,7 @@ int Controller::handleAPIConnection(Socket::Connection & conn){
}
H.Clean();
H.SetHeader("Content-Type", "text/javascript");
H.SetHeader("Access-Control-Allow-Origin", "*");
H.SetHeader("Access-Control-Allow-Methods", "GET, POST");
H.SetHeader("Access-Control-Allow-Headers", "Content-Type, X-Requested-With");
H.SetHeader("Access-Control-Allow-Credentials", "true");
H.setCORSHeaders();
if (jsonp == ""){
H.SetBody(Response.toString() + "\n\n");
}else{