ws-process 0.3.47 → 0.3.48
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/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -645,6 +645,7 @@ function asyncSend(msg) {
|
|
|
645
645
|
headers['x-api-key'] = [user.systemID, user.partnerID].join('@');
|
|
646
646
|
headers['request-datetime'] = cProcessItemRoot.requestTime;
|
|
647
647
|
headers.href = window.location.href;
|
|
648
|
+
headers.origin = window.location.origin;
|
|
648
649
|
|
|
649
650
|
const httpMSG = removeUndefinedKeys({
|
|
650
651
|
url,
|
|
@@ -782,6 +783,7 @@ function asyncSend(msg) {
|
|
|
782
783
|
jsonMSG.headers.requestTimestamp = cProcessItemRoot.requestTime;
|
|
783
784
|
jsonMSG.headers['request-datetime'] = cProcessItemRoot.requestTime;
|
|
784
785
|
jsonMSG.headers.href = window.location.href;
|
|
786
|
+
jsonMSG.headers.origin = window.location.origin;
|
|
785
787
|
|
|
786
788
|
if (jsonMSG.action === 'requestodata') {
|
|
787
789
|
jsonMSG.headers.authorization = `Basic ${btoa(
|