@sitecore-jss/sitecore-jss-dev-tools 22.4.0-canary.17 → 22.4.0-canary.18
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.
|
@@ -342,6 +342,7 @@ function setProxy(reqOptions, proxy, targetUrl) {
|
|
|
342
342
|
reqOptions.port = proxyUrl.port || (proxyUrl.protocol === 'https:' ? '443' : '80');
|
|
343
343
|
reqOptions.protocol = proxyUrl.protocol;
|
|
344
344
|
reqOptions.path = targetUrl;
|
|
345
|
+
reqOptions.headers = Object.assign(Object.assign({}, reqOptions.headers), { Host: new URL(targetUrl).hostname });
|
|
345
346
|
}
|
|
346
347
|
catch (error) {
|
|
347
348
|
console.error(chalk_1.default.red(`Invalid proxy url provided ${proxy}`));
|
|
@@ -328,6 +328,7 @@ export function setProxy(reqOptions, proxy, targetUrl) {
|
|
|
328
328
|
reqOptions.port = proxyUrl.port || (proxyUrl.protocol === 'https:' ? '443' : '80');
|
|
329
329
|
reqOptions.protocol = proxyUrl.protocol;
|
|
330
330
|
reqOptions.path = targetUrl;
|
|
331
|
+
reqOptions.headers = Object.assign(Object.assign({}, reqOptions.headers), { Host: new URL(targetUrl).hostname });
|
|
331
332
|
}
|
|
332
333
|
catch (error) {
|
|
333
334
|
console.error(chalk.red(`Invalid proxy url provided ${proxy}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-dev-tools",
|
|
3
|
-
"version": "22.4.0-canary.
|
|
3
|
+
"version": "22.4.0-canary.18",
|
|
4
4
|
"description": "Utilities to assist in the development and deployment of Sitecore JSS apps.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/parser": "^7.24.0",
|
|
36
|
-
"@sitecore-jss/sitecore-jss": "^22.4.0-canary.
|
|
36
|
+
"@sitecore-jss/sitecore-jss": "^22.4.0-canary.18",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"chokidar": "^3.6.0",
|
|
39
39
|
"del": "^6.0.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"typescript": "~5.6.3"
|
|
86
86
|
},
|
|
87
87
|
"types": "types/index.d.ts",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "94e41546d0fecec5a56c3a1d16469f24ada7f084",
|
|
89
89
|
"files": [
|
|
90
90
|
"dist",
|
|
91
91
|
"types",
|