Allowed "view site" request to save cookies in cross-origin requests

no issue

- adds `credentials: 'include'` option to `fetch()` which instructs browsers to save cookies in the POST response in cross-origin requests (default is `'same-origin'`)
This commit is contained in:
Kevin Ansfield 2019-09-09 17:01:12 +01:00
parent 448b3f44cd
commit 06cb0bd14e

View File

@ -21,6 +21,7 @@ export default AuthenticatedRoute.extend({
method: 'POST',
mode: 'cors',
redirect: 'manual',
credentials: 'include',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},