@inflector/aura 0.8.4 → 0.8.5
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.
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +6 -1
- package/package.json +1 -1
package/dist/bin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AA6JA,wBAAgB,KAAK,CAAC,MAAM,UAAQ,QA4CnC;AAiWD,wBAAsB,GAAG,
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AA6JA,wBAAgB,KAAK,CAAC,MAAM,UAAQ,QA4CnC;AAiWD,wBAAsB,GAAG,kBAiExB"}
|
package/dist/bin.js
CHANGED
|
@@ -581,12 +581,17 @@ export async function dev() {
|
|
|
581
581
|
target: Config.Url,
|
|
582
582
|
changeOrigin: true,
|
|
583
583
|
secure: false,
|
|
584
|
+
cookieDomainRewrite: "",
|
|
584
585
|
configure(proxy, _options) {
|
|
585
|
-
proxy.on("proxyReq", (proxyReq) => {
|
|
586
|
+
proxy.on("proxyReq", (proxyReq, req) => {
|
|
586
587
|
proxyReq.setHeader("Connection", "close");
|
|
587
588
|
if (AURA_KEY) {
|
|
588
589
|
proxyReq.setHeader("Authorization", `Bearer ${AURA_KEY}`);
|
|
589
590
|
}
|
|
591
|
+
// Explicitly forward cookies to the backend
|
|
592
|
+
if (req.headers.cookie) {
|
|
593
|
+
proxyReq.setHeader("Cookie", req.headers.cookie);
|
|
594
|
+
}
|
|
590
595
|
});
|
|
591
596
|
proxy.on("proxyRes", (proxyRes) => {
|
|
592
597
|
const cookies = proxyRes.headers["set-cookie"];
|