Make sure options exists every time on fetch()
This commit is contained in:
parent
522110c0bc
commit
2b0811dddc
|
@ -33,6 +33,7 @@ import 'whatwg-fetch'
|
|||
const oldfetch = window.fetch
|
||||
|
||||
let fetch = (url, options) => {
|
||||
options = options || {}
|
||||
const baseUrl = ''
|
||||
const fullUrl = baseUrl + url
|
||||
options.credentials = 'same-origin'
|
||||
|
|
Loading…
Reference in New Issue