security.js 295 B

12345678910111213
  1. import axios from "@/config/axios";
  2. import axios2 from "axios";
  3. export const getCsrf = async () => {
  4. try {
  5. let url = `/csrf`;
  6. const res = await axios.get(url);
  7. return res.data;
  8. } catch (error) {
  9. console.log("error", error);
  10. return false;
  11. }
  12. };