cors

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 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