Make sure options exists every time on fetch()

This commit is contained in:
eal 2017-09-02 19:29:16 +03:00
parent 522110c0bc
commit 2b0811dddc
1 changed files with 1 additions and 0 deletions

View File

@ -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'