1
0
Fork 0
forked from OpenNeo/impress
impress/public/javascripts/ajax_auth.js

9 lines
224 B
JavaScript

(function () {
var csrf_param = $('meta[name=csrf-param]').attr('content'),
csrf_token = $('meta[name=csrf-token]').attr('content'),
data = {};
data[csrf_param] = csrf_token;
$.ajaxSetup({data: data});
})();