Skip to content

Commit

Permalink
fix: CORS 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
uiop5809 committed Nov 6, 2024
1 parent cf878e6 commit abfffaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
"target": "https://openapi.naver.com/",
"changeOrigin": true,
"secure": false
},
"/proxy": {
"target": "http://localhost:8080/",
"changeOrigin": true
}
}
}
3 changes: 3 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default defineConfig({
"/api": {
target: "https://ureca.store/api",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, "/api"),
secure: false,
ws: true,
},
},
},
Expand Down

0 comments on commit abfffaf

Please sign in to comment.