Skip to content

Commit

Permalink
去除多余 cors
Browse files Browse the repository at this point in the history
  • Loading branch information
pakizheng committed Jan 11, 2024
1 parent 4c69713 commit 59ad974
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { SequelizeModuleOptions } from '@nestjs/sequelize';

// cors 名单
export const corsOrigins = [
'http://localhost:3001',
'https://zhengpq.github.io',
'http://106.53.170.67',
];
export const corsOrigins = ['http://localhost:3001', 'http://106.53.170.67'];

// 数据库配置
export const database: SequelizeModuleOptions = {
Expand Down

0 comments on commit 59ad974

Please sign in to comment.