modulepackage
0.0.0-20141103140412-98d9de60582a
Repository: https://github.com/fasterness/cors.git
Documentation: pkg.go.dev
# README
cors
CORS middleware for Go
corsHandler := cors.New(myHandler)
corsHandler.RemoveMethod("PUT")
corsHandler.RemoveMethod("DELETE")
max_age := 60 * time.Second
corsHandler.SetMaxAge(max_age.Seconds())
http.Handle("/", corsHandler)
http.ListenAndServe("localhost:9999", nil)
# Functions
No description provided by the author
# Structs
No description provided by the author