mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
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:
parent
448b3f44cd
commit
06cb0bd14e
@ -21,6 +21,7 @@ export default AuthenticatedRoute.extend({
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
redirect: 'manual',
|
||||
credentials: 'include',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user