Skip to content

Commit f3a5e23

Browse files
authored
Merge pull request #55 from gszol/undo_iframe_removal
Bug SOL-79800: Emirates: Issue with SecureSession sample for Javascri…
2 parents 4f00d40 + c022b51 commit f3a5e23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/features/SecureSession/SecureSession.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ var SecureTopicSubscriber = function (topicName) {
117117
subscriber.log('Received message: "' + message.getBinaryAttachment() + '", details:\n' +
118118
message.dump());
119119
});
120-
// connect to broker
121-
subscriber.connectToSolace();
120+
// if secure connection, first load iframe so the browser can provide a client-certificate
121+
var urlNoProto = hosturl.split('/').slice(2).join('/'); // remove protocol prefix
122+
document.getElementById('iframe').src = 'https://' + urlNoProto + '/crossdomain.xml';
122123
};
123124

124125
// Actually connects the session triggered when the iframe has been loaded - see in html code

0 commit comments

Comments
 (0)