We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1edcedd commit b7c935cCopy full SHA for b7c935c
1 file changed
cmd/serve_http.go
@@ -37,10 +37,11 @@ var serveHttpCmd = &cobra.Command{
37
38
// route
39
router := registerHandler(app)
40
+ // router.Use(cors.Default().Handler)
41
42
// build cors
43
muxCorsWithRouter := cors.New(cors.Options{
- AllowedOrigins: []string{"*"},
44
+ AllowedOrigins: []string{"*", "http://localhost:8000"},
45
AllowedMethods: []string{"*"},
46
AllowedHeaders: []string{"*"},
47
}).Handler(router)
0 commit comments