mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +00:00
One more oauth fix (#4849)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
ec9e63b1a2
commit
a6f962469f
@ -124,7 +124,11 @@ export function serveAccount (methods: Record<string, AccountMethod>, productId
|
|||||||
ctx.body = result
|
ctx.body = result
|
||||||
})
|
})
|
||||||
|
|
||||||
app.use(cors())
|
app.use(
|
||||||
|
cors({
|
||||||
|
credentials: true
|
||||||
|
})
|
||||||
|
)
|
||||||
app.use(bodyParser())
|
app.use(bodyParser())
|
||||||
app.use(router.routes()).use(router.allowedMethods())
|
app.use(router.routes()).use(router.allowedMethods())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user