fix(GBMinService): update CORS origin to specific subdomain

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-04-27 18:46:43 -03:00
parent f1f2bfa022
commit 8d25081a79

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'