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:
parent
e15f06071d
commit
634a62441d
|
@ -343,6 +343,7 @@ export default class Router extends EventEmitter {
|
|||
|
||||
return fetch(url, {
|
||||
method: 'GET',
|
||||
credentials: 'same-origin',
|
||||
headers: { 'Accept': 'application/json' }
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue