CORS #4
@ -31,7 +31,7 @@ func main() {
|
||||
|
||||
corsMiddleware := handlers.CORS(
|
||||
handlers.AllowedOrigins([]string{"*"}),
|
||||
handlers.AllowedMethods([]string{"GET", "POST", "OPTIONS"}),
|
||||
handlers.AllowedMethods([]string{"GET", "POST", "OPTIONS", "PATCH"}),
|
||||
handlers.AllowedHeaders([]string{"Content-Type", "Authorization"}),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user