Skip to content

Commit 53d7a73

Browse files
committed
fix: removed allowed origins from cors
1 parent db944e6 commit 53d7a73

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

.DS_Store

6 KB
Binary file not shown.

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ CLOUDINARY_CLOUD_NAME=
44
DATABASE_URL=
55
GOOGLE_CLIENT_ID=
66
GOOGLE_CLIENT_SECRET=
7-
ALLOWED_ORIGINS=
87
PORT=
98
API_PREFIX=
109
ACCESS_JWT_SECRET=

app/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ app.listen(Number(process.env.PORT) || 5432, () => {
2626
const appRouter = express.Router()
2727

2828
app.use(logger('dev'))
29-
app.use(cors({ origin: process.env.ALLOWED_ORIGINS }))
29+
app.use(cors())
3030
app.use(express.json())
3131
app.disable('x-powered-by')
3232

0 commit comments

Comments
 (0)