Set cookies on fetch

This commit is contained in:
eal 2017-08-31 11:23:17 +03:00
parent 87b18da811
commit 522110c0bc

View file

@ -35,6 +35,7 @@ const oldfetch = window.fetch
let fetch = (url, options) => {
const baseUrl = ''
const fullUrl = baseUrl + url
options.credentials = 'same-origin'
return oldfetch(fullUrl, options)
}