@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 CHANGED
@@ -1019,6 +1019,9 @@ function makeBasicHeaders(config, opts) {
1019
1019
  if (config && config.api.secureCookies != null) {
1020
1020
  headers.set(X_NILE_SECURECOOKIES, String(config.api.secureCookies));
1021
1021
  }
1022
+ if (config && config.api.origin) {
1023
+ headers.set(X_NILE_ORIGIN, config.api.origin);
1024
+ }
1022
1025
  return headers;
1023
1026
  }
1024
1027
  async function _fetch(config, path, opts) {