Spaces:
Paused
Paused
Download changedetectionio/static/js/csrf.js from minhpn/changedetection: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/spaces/minhpn/changedetection/resolve/main/changedetectionio/static/js/csrf.js
- Command line
-
hf download hf://spaces/minhpn/changedetection/changedetectionio/static/js/csrf.js
-
curl -L -o csrf.js https://huggingface.co/spaces/minhpn/changedetection/resolve/main/changedetectionio/static/js/csrf.js
287 Bytes
| $(document).ready(function () { | |
| $.ajaxSetup({ | |
| beforeSend: function (xhr, settings) { | |
| if (!/^(GET|HEAD|OPTIONS|TRACE)$/i.test(settings.type) && !this.crossDomain) { | |
| xhr.setRequestHeader("X-CSRFToken", csrftoken) | |
| } | |
| } | |
| }) | |
| }); | |