This commit is contained in:
starnakin 2023-11-13 13:32:11 +01:00
parent 6ea2f25f7f
commit 029467aa59

View File

@ -1,13 +1,6 @@
import axios from "axios";
axios.defaults.xsrfCookieName = 'csrftoken';
axios.defaults.xsrfHeaderName = 'X-CSRFToken';
axios.defaults.withCredentials = true;
/**
* return the token from response
*
* @param {Response} response - The reponse
*/
class Client
{
@ -16,7 +9,6 @@ class Client
*
* @param {string} url - The url of the backend
*/
constructor(url)
{
/**