()
| 6 | ) |
| 7 | |
| 8 | func CORS() gin.HandlerFunc { |
| 9 | config := cors.DefaultConfig() |
| 10 | config.AllowAllOrigins = true |
| 11 | config.AllowCredentials = true |
| 12 | config.AllowMethods = []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"} |
| 13 | config.AllowHeaders = []string{"*"} |
| 14 | return cors.New(config) |
| 15 | } |
no outgoing calls
no test coverage detected