Set cookies on fetch

This commit is contained in:
eal 2017-08-31 11:23:17 +03:00
parent 87b18da811
commit 522110c0bc
1 changed files with 1 additions and 0 deletions

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)
}