------ react ------
csrftoken.js
import axios from \'axios\'; import React from \'react\'; axios.defaults.xsrfHeaderName = "X-CSRFTOKEN";