Skip to content

Commit f7efd0c

Browse files
committed
Allow cors
1 parent beb9049 commit f7efd0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func RunWebProxy(grpcServer *grpc.Server, config *config.Config) {
6262
})
6363

6464
// Add CORS headers for browsers
65-
corsHandler := cors.Default().Handler(handler)
65+
corsHandler := cors.AllowAll().Handler(handler)
6666

6767
// Set up HTTP routes
6868
httpMux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)