Skip to content

Commit ae654ee

Browse files
committed
Enabled xhrFields to pass the credentials on SSO authenticated environments
Additional xhrFields : { withCredentials: True} added to the connection
1 parent 8fe463f commit ae654ee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

_site/app.js

+3
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,9 @@
12721272
return $.ajax( $.extend({
12731273
url: this.base_uri + params.path,
12741274
dataType: "json",
1275+
xhrFields:{
1276+
withCredentials: true
1277+
},
12751278
error: function(xhr, type, message) {
12761279
if("console" in window) {
12771280
console.log({ "XHR Error": type, "message": message });

src/app/services/cluster/cluster.js

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
return $.ajax( $.extend({
3232
url: this.base_uri + params.path,
3333
dataType: "json",
34+
xhrFields:{
35+
withCredentials: true
36+
},
3437
error: function(xhr, type, message) {
3538
if("console" in window) {
3639
console.log({ "XHR Error": type, "message": message });

0 commit comments

Comments
 (0)