Make sure options exists every time on fetch()

environments/dev/deployments/1
eal 7 years ago
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…
Cancel
Save