File tree Expand file tree Collapse file tree 5 files changed +5
-3
lines changed Expand file tree Collapse file tree 5 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ if mount | grep '/static/config.json'; then
88else
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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 ) {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments