@sap-ux/backend-proxy-middleware 0.10.4 → 0.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -251,8 +251,11 @@ async function enhanceConfigForSystem(proxyOptions, system, authType, tokenChang
251
251
  refreshToken: system.refreshToken,
252
252
  refreshTokenChangedCb: tokenChangedCallback
253
253
  });
254
- // sending a request to the backend to get token
255
- await provider.getAtoInfo();
254
+ // sending a request to the backend to get cookies
255
+ const ato = await provider.getAtoInfo();
256
+ if (ato) {
257
+ proxyOptions.headers['cookie'] = provider.cookies.toString();
258
+ }
256
259
  }
257
260
  else {
258
261
  throw new Error('Cannot connect to ABAP Environment on BTP using OAuth without service keys.');
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Abackend-proxy-middleware"
11
11
  },
12
- "version": "0.10.4",
12
+ "version": "0.10.6",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "i18next": "25.3.0",
29
29
  "prompts": "2.4.2",
30
30
  "proxy-from-env": "1.1.0",
31
- "@sap-ux/axios-extension": "1.23.0",
31
+ "@sap-ux/axios-extension": "1.24.0",
32
32
  "@sap-ux/btp-utils": "1.1.4",
33
33
  "@sap-ux/logger": "0.7.0",
34
34
  "@sap-ux/store": "1.2.1"