Github user neykov commented on a diff in the pull request: https://github.com/apache/brooklyn-ui/pull/30#discussion_r73882175 --- Diff: src/main/webapp/assets/js/util/brooklyn-utils.js --- @@ -175,17 +175,22 @@ define([ }; Util.logout = function logout() { - $.ajax({ - type: "POST", - dataType: "text", - url: "/v1/logout", - success: function() { - window.location.replace("/"); - }, - failure: function() { - window.location.replace("/"); - } - }); + var ua = window.navigator.userAgent; + if (ua.indexOf("MSIE ") > 0 || ua.indexOf(" Edge/") > 0 || ua.indexOf(" Trident/") > 0) { + $.ajax({ + async: false, + type: "GET", + dataType: "text", + url: "/v1/logout" + }); + document.execCommand('ClearAuthenticationCache', 'false'); --- End diff -- To avoid the (potentially brittle) user agent check - it will fail but it doesn't matter when in a try-catch block. And when it works it will do its thing.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---