Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions www/js/vcloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@
});

// Handler for SDK login method
// Is it there that i should put this code from "silver lining" permitting to deal with
// a proxy (to solve the cross domain issue)
//$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
// options.url = "proxy/" + encodeURIComponent(options.url);
//});
// but i bet i should have something like this also, right ?

//$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
// jqXHR.setRequestHeader('x-vcloud-authorization', jqXHR.getResponseHeader('x-vcloud-authorization'));
//});
// as you see, i'm not at all fluent in js. :-)

vcd.register(vmware.events.cloud.LOGIN, onLogin);

// Handlers for SDK refresh of data model
Expand Down