1
0
Fork 0
forked from srxl/akkoma-fe

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

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'