Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
keepRedirectCookies: false,
method: 'GET',
processData: true,
timeout: null,
cache: 'default',
credentials: 'same-origin',
mode: 'cors',
redirect: 'follow',
referrer: 'client',
}
// for node.js
if (typeof window === 'undefined') {
if (typeof fetch !== 'function') {
initialRxRequestInit.fetchModule = abortableFetch(_fetch).fetch
}
if (typeof Headers !== 'function') {
initialRxRequestInit.headersInitClass = _Headers
}
}
export const httpErrorMsgPrefix = 'Fetch error status:'