VMware {code} Community
bbansal
Contributor
Contributor

CORS support for javascript SDK

I am trying to run an AJAX call for verifying Vcenter credentials and read somewhere in the Javascript SDK:

### Browser

The browser samples launch a simple local server that hosts all required static

files and provides an HTTP proxy which is required due to the lack of CORS

support in the target services. Such a proxy is not needed when the samples are

hosted in the same origin as the API endpoint which is the case with the

official ESXi client.

Is there a way CORS support can be provided so that we can make Ajax calls?

Tags (1)
0 Kudos
1 Reply
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi,

We cannot provide CORS support due to security concerns. You can still make AJAX calls but not cross domain ones.

Best Regards,

Denis

0 Kudos