Skip to content

Instantly share code, notes, and snippets.

@cuneydbolukoglu
Created November 17, 2021 07:37
Show Gist options
  • Save cuneydbolukoglu/19a1252a9b39b7a7ad39567c36701a36 to your computer and use it in GitHub Desktop.
Save cuneydbolukoglu/19a1252a9b39b7a7ad39567c36701a36 to your computer and use it in GitHub Desktop.
Axios Api Token
axios.defaults.xsrfCookieName = 'csrftoken';
axios.defaults.xsrfHeaderName = 'X-CSRFToken';
axios.defaults.headers.common['Cookie'] = document.cookie;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment