diff --git a/public/_redirects b/public/_redirects index b485d3f..f2be657 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1 +1,2 @@ -/api/ors/* http://112.162.84.70:8003/ors/:splat 200! \ No newline at end of file +/api/ors/v2/directions/foot-walking/geojson http://112.162.84.70:8003/ors/v2/directions/foot-walking/geojson 200! +/* /index.html 200 \ No newline at end of file diff --git a/src/pages/WalkPage/components/MapComponent/index.tsx b/src/pages/WalkPage/components/MapComponent/index.tsx index 6b1b8ed..0e4c92d 100644 --- a/src/pages/WalkPage/components/MapComponent/index.tsx +++ b/src/pages/WalkPage/components/MapComponent/index.tsx @@ -927,7 +927,12 @@ export default function MapComponent({ isModalOpen = false, setNearbyWalkers }: { headers: { 'Content-Type': 'application/json', - Accept: 'application/json', + }, + // 프록시 요청임을 명시 + proxy: { + protocol: 'http', + host: '112.162.84.70', + port: 8003, }, } )