Also protect GET requests with token for #892

This commit is contained in:
the-djmaze 2023-01-31 11:30:24 +01:00
parent b1c9bebce6
commit d7b5f3f4db
2 changed files with 9 additions and 2 deletions

3
dev/bootstrap.js vendored
View file

@ -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);
};