Skip to content

Commit 0f16355

Browse files
authored
Merge pull request #5 from efe-osa/develop
fix: update cors
2 parents 83c4116 + 11ebb13 commit 0f16355

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

server/src/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ const port = config.PORT;
1515

1616
// Middleware
1717
app.use(helmet());
18-
app.use(cors(
19-
{
20-
origin: ['http://localhost:3000', 'http://localhost:3001', "https://sql-assistant-server.up.railway.app"],
21-
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
22-
allowedHeaders: ['Content-Type', 'Authorization']
23-
}
24-
));
18+
app.use(cors());
2519
app.use(compression());
2620
app.use(express.json());
2721
app.use(rateLimit({

0 commit comments

Comments
 (0)