feat(GBMinService): add CORS header to meeting token endpoint

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-04-26 15:25:35 -03:00
parent 87c774145d
commit 0e421cf82e

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) {