elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/json-node-fetch / 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!