import axios from 'axios';

// Create an axios instance with default configuration
const axiosInstance = axios.create({
  baseURL: 'http://localhost:5000',
  withCredentials: true, // Send credentials like cookies with cross-origin requests
  /* headers: {
    'Content-Type': 'application/json',
    'Access-Control-Allow-Origin': '*', // Adjust this based on your API's CORS settings
  }, */
});

export default axiosInstance;