私はCitrix StoreFront Web APIを使用しており、リクエストを認証してリソースのリストを取得するためのすべての手順を実装しました。このコードでアプリを起動することもできました:
function performLaunch(resource) {
var icaFileUrl = resource.launchurl,
csrfToken = getCookie('CsrfToken'),
currentTime = (new Date()).getTime(),
frameId = "launchframe_" + currentTime;
// To initiate a launch, an ICA file is loaded into a hidden iframe.
// The ICA file is returned with content type "application/x-ica", allowing it to be intercepted by the Citrix HDX
// browser plug-in in Firefox/Chrome/Safari. For IE, the user may be prompted to open the ICA file.
$('#hidden-iframes').append('<iframe id="' + frameId + '" name="' + frameId + '"></iframe>');
if (csrfToken != null) {
icaFileUrl = updateQueryString(icaFileUrl, "CsrfToken", csrfToken);
}
// Web Proxy request to load the ICA file into an iframe
// The request is made by adding
icaFileUrl = updateQueryString(icaFileUrl, 'launchId', currentTime);
$("#" + frameId).attr('src', icaFileUrl);
console.log('perform launch - url: ' + icaFileUrl);
}
残念ながら、Citrix Receiver for Windows でアプリを起動します。しかし、私の目標はブラウザでアプリを起動することです。Web サーバーに Citrix Receiver for HTML5 をインストールしましたが、そこでアプリを起動する方法がわかりません。