Add service in cors origins
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 28s
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 28s
This commit is contained in:
parent
05a42f6414
commit
a0e389d50f
@ -8,7 +8,7 @@ const PORT = process.env.PORT || 3001;
|
||||
|
||||
// Configuration CORS
|
||||
const corsOptions = {
|
||||
origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000'],
|
||||
origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000', 'http://lecofrre-front:3000'],
|
||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||
allowedHeaders: ['Content-Type', 'Authorization']
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user