Skip to content

Commit d410108

Browse files
authored
Update middleware.go
1 parent f8daed4 commit d410108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/middleware.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const httpLiveFileProviderEnvKey = "HttpLiveFileProvider"
1717
// CORSMiddleware ...
1818
func CORSMiddleware() gin.HandlerFunc {
1919
return func(c *gin.Context) {
20-
c.Writer.Header().Set("Access-Control-Allow-Origin", "http://localhost")
20+
c.Writer.Header().Set("Access-Control-Allow-Origin", "*")
2121
c.Writer.Header().Set("Access-Control-Max-Age", "86400")
2222
c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE, UPDATE")
2323
c.Writer.Header().Set("Access-Control-Allow-Headers", "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding, x-access-token")

0 commit comments

Comments
 (0)