allow cross origin requests

This commit is contained in:
David Zhao
2020-12-28 10:25:27 -08:00
parent b32fee24c8
commit 46b5942a95
4 changed files with 13 additions and 13 deletions
-1
View File
@@ -65,7 +65,6 @@ func createClient(c *cli.Context) error {
func createRoom(c *cli.Context) error {
ctx := contextWithAccessToken(c, &auth.VideoGrant{RoomCreate: true})
fmt.Println("context", ctx)
room, err := roomClient.CreateRoom(ctx, &livekit.CreateRoomRequest{
Name: c.String("name"),
})
+7 -5
View File
@@ -11,7 +11,7 @@ import (
var (
TokenCommands = []*cli.Command{
{
Name: "token",
Name: "create-token",
Usage: "create token for Room APIs",
Action: createToken,
Flags: []cli.Flag{
@@ -26,12 +26,14 @@ var (
Usage: "enable token to be used to create rooms",
},
&cli.StringFlag{
Name: "participant",
Usage: "unique name of the participant, used with --join",
Name: "participant",
Aliases: []string{"p"},
Usage: "unique name of the participant, used with --join",
},
&cli.StringFlag{
Name: "room",
Usage: "name of the room to join, empty to allow joining all rooms",
Name: "room",
Aliases: []string{"r"},
Usage: "name of the room to join, empty to allow joining all rooms",
},
},
},