fix: cors

This commit is contained in:
2026-06-06 09:31:31 +05:30
parent 1789fc0abe
commit cb81d476a8
3 changed files with 23 additions and 18 deletions

View File

@@ -4,4 +4,12 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:5000',
changeOrigin: true,
}
}
}
})