Hi all,
we are trying to implement a centralized application to login against various Cisco Collaboration web applications, one of those is Cisco VCS.
I'm able to configure ad Administrator Account with these behaviour on the VCS server itself:
- read-write access level
- web access
- and API access
we tried to execute web login by means of HTTP POST (implemented with java script), but we receive error:
Failed to load https://X.X.X.X/login: Redirect from 'https://X.X.X.X/login' to 'https://X.X.X.X/overview' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://X.X.X.X' is therefore not allowed access
code implemented is :
function invioForm(){
var params = "username=timadmin&password=timadmin";
var url = 'https://X.X.X.X/login';
var XMLHttp = new XMLHttpRequest();
XMLHttp.onreadystatechange=function(){
if (XMLHttp.readyState==4){
window.open(XMLHttp.responseURL);
//window.close();
}
}
var formData = new FormData();
XMLHttp.open("POST", url, true);
XMLHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
XMLHttp.send(params);
}
Any idea on how to accomplish this?
regards
Marco