mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Also protect GET requests with token for #892
This commit is contained in:
parent
b1c9bebce6
commit
d7b5f3f4db
2 changed files with 9 additions and 2 deletions
3
dev/bootstrap.js
vendored
3
dev/bootstrap.js
vendored
|
|
@ -60,7 +60,8 @@ export default App => {
|
|||
postData.XToken = Settings.app('token');
|
||||
init.body = JSON.stringify(postData);
|
||||
}
|
||||
|
||||
init.headers['X-SM-Token'] = Settings.app('token');
|
||||
// init.headers = new Headers(init.headers);
|
||||
return fetch(resource, init);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue