Skip to content

Commit 572b467

Browse files
author
Mohamed Nur
committed
chore: rebase
Signed-off-by: Mohamed Nur <[email protected]>
1 parent 4cea46f commit 572b467

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

docker/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if mount | grep '/static/config.json'; then
88
else
99
# Apply ENV vars to temporary config.json
1010
jq '.API_BASE_URL = env.API_BASE_URL
11+
| .API_WITH_CREDENTIALS = env.API_WITH_CREDENTIALS
1112
| .OIDC_ISSUER = env.OIDC_ISSUER
1213
| .OIDC_CLIENT_ID = env.OIDC_CLIENT_ID
1314
| .OIDC_SCOPE = env.OIDC_SCOPE

public/static/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"API_BASE_URL": "",
3-
"API_WITH_CREDENTIALS": false,
3+
"API_WITH_CREDENTIALS": "",
44
"OIDC_ISSUER": "",
55
"OIDC_CLIENT_ID": "",
66
"OIDC_SCOPE": "openid email profile",

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
3939
setJwtForAjax(getToken());
4040
41-
// Enable credentialed cross-site Access-Control requests
41+
// Send XHR cross-site cookie credentials
4242
if (this.$api.WITH_CREDENTIALS){
4343
this.axios.interceptors.request.use(
4444
function(config) {

src/main.js

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

48-
// XHR cross-site cookie credentials
48+
// Send XHR cross-site cookie credentials
4949
Vue.prototype.$api.WITH_CREDENTIALS = response.data.API_WITH_CREDENTIALS;
5050

5151
// OpenID Connect

src/shared/api.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"METHOD_PUT": "PUT",
1010
"METHOD_DELETE": "DELETE",
1111
"FORCE_PASSWORD_CHANGE": "FORCE_PASSWORD_CHANGE",
12+
"WITH_CREDENTIALS": "",
1213

1314
"BASE_URL": "",
1415
"URL_ABOUT": "api/version",

0 commit comments

Comments
 (0)