Skip to content

Commit 180fb84

Browse files
Fix CORS config
1 parent 7a0e0d5 commit 180fb84

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ JWT_EXPIRES_IN=86400
1313

1414
#=== Application ===#
1515
PORT=3000
16-
ORIGIN='"*"'
16+
ORIGIN="*"
1717
#FOR PRODUCTION, USE:
18-
#ORIGIN=http://nestjs-task-management-frontend-123456.s3-website.us-east-2.amazonaws.com
18+
#ORIGIN="http://nestjs-task-management-frontend-123456.s3-website.us-east-2.amazonaws.com"

src/config/app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dotenv.config();
33

44
const appConfig = {
55
port: parseInt(process.env.PORT, 10) || 3000,
6-
origin: process.env.ORIGIN || '"*"',
6+
origin: process.env.ORIGIN || '*',
77
};
88

99
export default appConfig;

0 commit comments

Comments
 (0)