@niledatabase/server 4.0.1-alpha.0 → 4.0.1
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/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1013,6 +1013,9 @@ function makeBasicHeaders(config, opts) {
|
|
|
1013
1013
|
if (config && config.api.secureCookies != null) {
|
|
1014
1014
|
headers.set(X_NILE_SECURECOOKIES, String(config.api.secureCookies));
|
|
1015
1015
|
}
|
|
1016
|
+
if (config && config.api.origin) {
|
|
1017
|
+
headers.set(X_NILE_ORIGIN, config.api.origin);
|
|
1018
|
+
}
|
|
1016
1019
|
return headers;
|
|
1017
1020
|
}
|
|
1018
1021
|
async function _fetch(config, path, opts) {
|