fix(GBMinService): update CORS origin to specific subdomain
All checks were successful
GBCI / build (push) Successful in 44s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-04-27 18:46:43 -03:00
parent b5034f9167
commit 2a61c07cd1

View file

@ -166,7 +166,7 @@ export class GBMinService {
// Servers the bot information object via HTTP so clients can get
// instance information stored on server.
GBServer.globals.server.use(cors({
origin: '*.pragmatismo.com.br',
origin: 'gb6.pragmatismo.com.br',
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization', 'x-requested-with'
, 'x-ms-bot-agent'