VMware Cloud Community
Carmageddon
Contributor
Contributor

Remote AJAX login into user's control panel in vCloud Director

Hello guys!

We want to better integrate between our provisioning and billing systems, and the vcloud login portal (version 5.5), by giving customers a "Open Control Panel" like button in our systems, which would POST to the https://vcloud.example.com/cloud or something, and then once session cookie is established, open a new tab to the vcloud interface.

So I've tried doing a POST imitating the POST done if you manually login in the web client, however this request is denied by browser security due to CORS - Cross Origin Resource Sharing, as the web server does not reply with the required headers to allow this (mostly Access-Control-Allow-Origin header, but few others too).

Any ideas how to accomplish my goal? Perhaps some tweak to the vCloud web server config to send those headers? some other recommended method? I have Googled about this, and no similar information found.

Thanks!

0 Kudos
2 Replies
Carmageddon
Contributor
Contributor

bump... I still need ideas on this please.

0 Kudos
randomtask1155
Contributor
Contributor

was this ever resolved?  I see the same issue.  Http authentication is successful with vcloud but browser blocks the response from my app because vcloud does not return Access-Control-Allow-Origin in the header.

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://discuss.zendesk.com' is therefore not allowed access

0 Kudos