Refresh CSRF Token when using Turbolinks
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
b8156040a5
commit
60a0fcfea5
8
app/assets/javascripts/authenticity_token_refresh.js
Normal file
8
app/assets/javascripts/authenticity_token_refresh.js
Normal file
@@ -0,0 +1,8 @@
|
||||
(function() {
|
||||
"use strict";
|
||||
App.AuthenticityTokenRefresh = {
|
||||
initialize: function() {
|
||||
$.rails.refreshCSRFTokens();
|
||||
}
|
||||
};
|
||||
}).call(this);
|
||||
Reference in New Issue
Block a user