From 7bafd41a569c24380e2be98bbe019b7131aabbe0 Mon Sep 17 00:00:00 2001 From: farhatahmad <35435341+farhatahmad@users.noreply.github.com> Date: Fri, 2 Aug 2019 16:11:45 -0400 Subject: [PATCH] Fixed issue with invalid csrf token (#724) --- app/assets/javascripts/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 53292afe..f6752c67 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -14,6 +14,10 @@ // You should have received a copy of the GNU Lesser General Public License along // with BigBlueButton; if not, see . +$(document).on('turbolinks:load', function(){ + $.rails.refreshCSRFTokens(); +}) + document.addEventListener("turbolinks:before-cache", function() { $(".alert").remove() }) \ No newline at end of file