Skip to content
Snippets Groups Projects
axios.config.ts 166 B
Newer Older
  • Learn to ignore specific revisions
  • Bastien DUMONT's avatar
    Bastien DUMONT committed
    import { AxiosRequestConfig } from 'axios'
    
    export const getAxiosXSRFHeader = (token: string): AxiosRequestConfig => ({
      headers: {
        'XSRF-TOKEN': token,
      },
    })