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

:twisted_rightwards_arrows: merge Add good CORS origin

Merge branch 'feature/add-cors' into 'develop'
parents 8864fd97 ff312d0e
Branches main
2 merge requests!38feat: V1,!28Add good CORS origin
Pipeline #303299 passed with stages
in 34 seconds
......@@ -11,7 +11,11 @@ async function bootstrap() {
const app = await NestFactory.create(AppModule, { httpsOptions });
app.use(cookieParser());
app.enableCors({
origin: '*',
origin: [
'http://klebert-host.com:33040',
'http://klebert-host.com:33037',
'http://localhost:4200',
],
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