cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1002
Views
0
Helpful
0
Replies

Cisco VCS Administration Account API access

marco_81
Level 1
Level 1

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

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: