1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

send credentials when fetching new route (#1371)

This commit is contained in:
Thomas Preusse 2017-03-08 00:14:17 +01:00 committed by Guillermo Rauch
parent e15f06071d
commit 634a62441d

View file

@ -343,6 +343,7 @@ export default class Router extends EventEmitter {
return fetch(url, { return fetch(url, {
method: 'GET', method: 'GET',
credentials: 'same-origin',
headers: { 'Accept': 'application/json' } headers: { 'Accept': 'application/json' }
}) })
} }