cors

package
v0.2.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL