-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Await xsrfRequest before starting the app
Instead of awaiting the xsrfRequest before calling get_endpoint, await it before starting the marionettejs application. That way we do not need to check the promise before each request and any other request made by the app will also have the xsrf token. Not matter which ones is executed first.
- Loading branch information
1 parent
b268bed
commit 036fa38
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters