Skip to content

Commit bb2a86c

Browse files
committed
fix: cors
1 parent 522c6d8 commit bb2a86c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const config = {
1919
// 本地开发服务器URL
2020
localDev: process.env.BACKEND_LOCAL_URL || 'http://localhost:3000',
2121
// 生产环境服务器URL
22-
production: process.env.BACKEND_PRODUCTION_URL || 'https://api.tobenot.top',
22+
production: process.env.BACKEND_PRODUCTION_URL || 'https://bwb.tobenot.top',
2323
},
2424

2525
// 邮件配置
@@ -50,6 +50,8 @@ export const config = {
5050
'http://localhost:5173', // 兼容其他可能的本地端口
5151
'http://127.0.0.1:5173',
5252
'http://127.0.0.1:5174',
53+
'https://tobenot.top', // 前端域名
54+
'https://bwb.tobenot.top', // 后端域名
5355
];
5456

5557
// 从环境变量添加额外的CORS域名

0 commit comments

Comments
 (0)