From 7e50c6c4b5995da117cd57cc26032140b0008c48 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 15 Sep 2020 15:32:17 +0300 Subject: - enable CSRF support earlier - remove rpc/sanityCheck from CSRF-excluded calls --- js/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/App.js b/js/App.js index 7eb4b7f48..2bc2020bb 100644 --- a/js/App.js +++ b/js/App.js @@ -588,6 +588,7 @@ const App = { this.setLoadingProgress(30); this.initHotkeyActions(); + this.enableCsrfSupport(); const a = document.createElement('audio'); const hasAudio = !!a.canPlayType; @@ -628,7 +629,6 @@ const App = { return errorMsg == ""; }, initSecondStage: function() { - this.enableCsrfSupport(); document.onkeydown = (event) => { return this.hotkeyHandler(event) }; document.onkeypress = (event) => { return this.hotkeyHandler(event) }; -- cgit v1.2.3