feat(GBMinService): add CORS header to meeting token endpoint
All checks were successful
GBCI / build (push) Successful in 37s
All checks were successful
GBCI / build (push) Successful in 37s
This commit is contained in:
parent
7175ab550b
commit
6f6dfca9c2
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue