Permissive cors config
This commit is contained in:
parent
a5a1d144aa
commit
bc13eed372
1 changed files with 6 additions and 1 deletions
|
|
@ -211,7 +211,12 @@ module.exports = async (
|
|||
}
|
||||
}
|
||||
|
||||
app.use(cors())
|
||||
app.use(
|
||||
cors({
|
||||
credentials: true,
|
||||
origin: '*'
|
||||
})
|
||||
)
|
||||
|
||||
app.use((req, res, next) => {
|
||||
res.setHeader('x-session-id', SESSION_ID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue