Refresh CSRF Token when using Turbolinks

This commit is contained in:
Julian Herrero
2023-06-29 16:24:19 +02:00
committed by Senén Rodero Rodríguez
parent b8156040a5
commit 60a0fcfea5
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
(function() {
"use strict";
App.AuthenticityTokenRefresh = {
initialize: function() {
$.rails.refreshCSRFTokens();
}
};
}).call(this);