feat(GBMinService): add CORS header to meeting token endpoint
All checks were successful
GBCI / build (push) Successful in 37s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-04-26 15:25:35 -03:00
parent 7175ab550b
commit 6f6dfca9c2

View file

@ -568,8 +568,12 @@ export class GBMinService {
.bind(min);
GBServer.globals.server
.all('/${min.instance.botId}/meeting-token', async (req, res) => {
.all(`/${min.instance.botId}/meeting-token`, async (req, res) => {
try {
// Add to your route handler
res.setHeader('Access-Control-Allow-Origin', '*');
// 1. Validate request
const { room, identity, name } = req.query;
if (!room || !identity) {