fix: cors middleware 설정 제거

dev
minuk926 2 years ago
parent f6592d19b5
commit c84256092c

@ -8,7 +8,7 @@ import Swal from 'sweetalert2';
const axiosService = axios.create({ const axiosService = axios.create({
// baseURL: process.env.NODE_ENV === 'development' ? process.env.REACT_APP_API_URL : '', // baseURL: process.env.NODE_ENV === 'development' ? process.env.REACT_APP_API_URL : '',
baseURL: process.env.REACT_APP_API_URL, baseURL: process.env.REACT_APP_API_URL,
withCredentials: process.env.NODE_ENV !== 'production', // 개발시만 사용 : crossdomain withCredentials: true, // process.env.NODE_ENV !== 'production', // 개발시만 사용 : crossdomain
timeout: Number(process.env.REACT_APP_SERVER_TIMEOUT), timeout: Number(process.env.REACT_APP_SERVER_TIMEOUT),
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'

Loading…
Cancel
Save