Documentation ¶ Index ¶ func AllowAllCORSFromEverywhere(h http.Handler, additionalAllowedHeaders ...string) http.Handler func AllowCORSFrom(h http.Handler, allowedOrigins []string) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AllowAllCORSFromEverywhere ¶ func AllowAllCORSFromEverywhere(h http.Handler, additionalAllowedHeaders ...string) http.Handler AllowAllCORSFromEverywhere allows Cross Origin Resoruce Sharing from any origin. Don't do this without consideration in production systems. func AllowCORSFrom ¶ func AllowCORSFrom(h http.Handler, allowedOrigins []string) http.Handler AllowCORSFrom adds preflight headers allowing the given origins. Types ¶ This section is empty. Source Files ¶ View all Source files cors.go Click to show internal directories. Click to hide internal directories.