mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-08 07:59:42 +00:00
Begin moving to NPM/Gulp based build system
There are too many options.
This commit is contained in:
1
RIGS/static/js/csrf.js
Normal file
1
RIGS/static/js/csrf.js
Normal file
@@ -0,0 +1 @@
|
||||
$.ajaxSetup({beforeSend:function(e,t){/^http:.*/.test(t.url)||/^https:.*/.test(t.url)||e.setRequestHeader("X-CSRFToken",function(e){var t=null;if(document.cookie&&""!=document.cookie)for(var n=document.cookie.split(";"),o=0;o<n.length;o++){var r=jQuery.trim(n[o]);if(r.substring(0,e.length+1)==e+"="){t=decodeURIComponent(r.substring(e.length+1));break}}return t}("csrftoken"))}});
|
||||
Reference in New Issue
Block a user