@cloud-cli/px 3.1.4 → 3.1.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/proxy.js +1 -1
- package/package.json +1 -1
package/dist/proxy.js
CHANGED
|
@@ -168,5 +168,5 @@ function getHost(string) {
|
|
|
168
168
|
}
|
|
169
169
|
function setCorsOriginHeader(req, res) {
|
|
170
170
|
const corsOrigin = new URL(req.headers.origin);
|
|
171
|
-
res.setHeader('Access-Control-Allow-Origin', corsOrigin.
|
|
171
|
+
res.setHeader('Access-Control-Allow-Origin', corsOrigin.origin);
|
|
172
172
|
}
|