Skip to content

Commit 4c903e3

Browse files
author
Mohamed Nur
committed
refactor: handle env being set to false
Signed-off-by: Mohamed Nur <[email protected]>
1 parent 572b467 commit 4c903e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ axios.get(contextPath + "/static/config.json").then(response => {
4646
}
4747

4848
// Send XHR cross-site cookie credentials
49-
Vue.prototype.$api.WITH_CREDENTIALS = response.data.API_WITH_CREDENTIALS;
49+
Vue.prototype.$api.WITH_CREDENTIALS = response.data.API_WITH_CREDENTIALS && response.data.API_WITH_CREDENTIALS.toLowerCase() === "true";
5050

5151
// OpenID Connect
5252
Vue.prototype.$oidc.ISSUER = response.data.OIDC_ISSUER;

0 commit comments

Comments
 (0)