Skip to content
Snippets Groups Projects
Commit 8864fd97 authored by HUSS THEOPHILE's avatar HUSS THEOPHILE
Browse files

:twisted_rightwards_arrows: merge feat: Add credentials in CORS header

Merge branch 'feature/add-credentials' into 'develop'
parents 0bc5dd58 7a8cff17
Branches develop
2 merge requests!38feat: V1,!26feat: Add credentials in CORS header
Pipeline #303286 passed with stages
in 34 seconds
......@@ -12,6 +12,7 @@ async function bootstrap() {
app.use(cookieParser());
app.enableCors({
origin: '*',
credentials: true,
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
allowedHeaders: 'Content-Type, Accept, Authorization',
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment