What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-03 13:36:02
csrf token fetch django
let data = { 'file': file, 'fileName': file.name, }; // You have to download 3rd Cookies library // https://docs.djangoproject.com/en/dev/ref/csrf/#ajax let csrftoken = Cookies.get('csrftoken'); let response = fetch("/upload/", { met... Add solution