Port değişti
This commit is contained in:
@@ -53,8 +53,8 @@ npm install
|
||||
npm run dev
|
||||
|
||||
# 4. Tarayıcıda açma
|
||||
# Frontend: http://localhost:5005
|
||||
# Backend API: http://localhost:3005
|
||||
# Frontend: http://localhost:5173
|
||||
# Backend API: http://localhost:3000
|
||||
```
|
||||
|
||||
#### 1.2 Development Workflow
|
||||
@@ -1531,7 +1531,7 @@ const getFuelSlips = (userId, status) => {
|
||||
const corsOptions = {
|
||||
origin: process.env.NODE_ENV === 'production'
|
||||
? 'https://your-domain.com'
|
||||
: ['http://localhost:5005', 'http://localhost:4005'],
|
||||
: ['http://localhost:5173', 'http://localhost:4173'],
|
||||
methods: ['GET', 'POST', 'PUT', 'DELETE'],
|
||||
allowedHeaders: ['Content-Type', 'Authorization'],
|
||||
credentials: true,
|
||||
|
||||
Reference in New Issue
Block a user