diff --git a/public/src/modules/csrf.js b/public/src/modules/csrf.js new file mode 100644 index 0000000000..0329a42917 --- /dev/null +++ b/public/src/modules/csrf.js @@ -0,0 +1,15 @@ +define('csrf', function() { + "use strict"; + var csrf = {}, + _data = {}; + + csrf.get = function() { + return _data.token; + } + + csrf.set = function(token) { + _data.token = token; + }; + + return csrf; +}); \ No newline at end of file