javascript: autosave with explicit cookies settings
Older browsers implemented a different default value for `window.fetch` credentials: it was omitted unless explicitely set. So we force the value for these older browsers: - Firefox 39-60 - Chrome 42-67 - Safari 10.1-11.1.2 See https://github.com/github/fetch#sending-cookies
This commit is contained in:
parent
2309017727
commit
64d96646a3
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ export default class AutosaveController {
|
|||
const fetchOptions = {
|
||||
method: form.method,
|
||||
body: formData,
|
||||
credentials: 'same-origin',
|
||||
headers: { Accept: 'application/json' }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue