cors

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CORSFilterCode = "cors"

CORSFilterCode is the code used to register this middleware

Variables

This section is empty.

Functions

func CORSFilter

func CORSFilter(options Options) middleware.Func

CORSFilter provides Cross-Origin Resource Sharing middleware. using RS cors handlers

Types

type Options

type Options struct {
	AllowedOrigins []string `mapstructure:"allowed_origins"`
}

AuthorizationOptions are the options configured for all endpoints

Jump to

Keyboard shortcuts

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