FEAT: Adição da URL de banda larga na configuração do CORs.
This commit is contained in:
parent
ab836654f7
commit
28b988d2d1
@ -15,7 +15,7 @@ const PORT = process.env.PORT || 3000;
|
|||||||
* CORS
|
* CORS
|
||||||
*/
|
*/
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: 'https://sothis.com.br',
|
origin: ['https://sothis.com.br', 'https://bandalarga.srv.br'],
|
||||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||||
allowedHeaders: ['Content-Type', 'Authorization']
|
allowedHeaders: ['Content-Type', 'Authorization']
|
||||||
}));
|
}));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user