mirror of
https://github.com/hknsh/project-knedita.git
synced 2024-11-28 17:41:15 +00:00
Updated CORS config
This commit is contained in:
parent
652cba27ce
commit
af1cc94d8e
2 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ REDIS_PASSWORD=<placehoder>
|
||||||
|
|
||||||
# Express
|
# Express
|
||||||
SERVER_PORT=<placeholder>
|
SERVER_PORT=<placeholder>
|
||||||
|
CLIENT_URL=<placeholder>
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
JWT_ACCESS_SECRET=<placeholder>
|
JWT_ACCESS_SECRET=<placeholder>
|
||||||
|
|
|
@ -23,7 +23,7 @@ app.use(compression({ level: 9 }))
|
||||||
app.use(
|
app.use(
|
||||||
cors({
|
cors({
|
||||||
credentials: true,
|
credentials: true,
|
||||||
origin: '*', // TODO: Add client development (and production too) url
|
origin: process.env.CLIENT_URL,
|
||||||
optionsSuccessStatus: 200,
|
optionsSuccessStatus: 200,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue