Remove content-type as it causes the failure of formdata pass

This commit is contained in:
jetli 2024-09-09 16:57:58 -07:00
parent 1abbb121c0
commit ee71097034

View File

@ -2,10 +2,7 @@ import axios from 'axios'
import { jwtDecode } from 'jwt-decode' import { jwtDecode } from 'jwt-decode'
const backendAxios = axios.create({ const backendAxios = axios.create({
baseURL: '', baseURL: ''
headers: {
'Content-Type': 'application/json'
}
}) })
// Function to check if the token has expired // Function to check if the token has expired