webpack.config에서 proxy도 해보고 swr withCredentials도 했는데 왜 쿠키가 안생길까요...?
proxy: {
'/api': {
target: 'http://localhost:3095',
changeOrigin: true,
},
},
--------------------------------------------
import axios from 'axios';
const fetcher = (url: string) =>
axios
.get(url, {
withCredentials: true,
})
.then((response) => response.data);
export default fetcher;
아아 생겼어요~~ 감사합니다