Add allowed origin
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 33s
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 33s
This commit is contained in:
parent
698256cd24
commit
ce2c399055
@ -13,7 +13,7 @@ const PORT = process.env.PORT || 8080;
|
||||
|
||||
// Configuration CORS
|
||||
const corsOptions = {
|
||||
origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000'],
|
||||
origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000', 'https://lecoffreio.4nkweb.com'],
|
||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||
allowedHeaders: ['Content-Type', 'Authorization']
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user