Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.03 KB

globalJsonRequestOptions.md

File metadata and controls

28 lines (17 loc) · 1.03 KB

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / lib/json-node-fetch / globalJsonRequestOptions

Variable: globalJsonRequestOptions

const globalJsonRequestOptions: JsonRequestInit

The mutable default options for all jsonFetch calls. Keys will be overridden by the optional options object passed into each call, e.g. jsonFetch(url, options).

Note: you must use credentials: 'include' to include cookies with your requests. This is not the default setting.

WARN: this setting MUST only be used in "end-developer" source, not in libraries or anything that is meant to be imported into higher-order code or you run the risk of terrible conflicts!

See

https://github.com/node-fetch/node-fetch#options

Source

lib/json-node-fetch/index.ts:79