cors

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client ...

func (*Client) Middleware

func (client *Client) Middleware(next http.Handler) http.Handler

Middleware adds CORS to the router

type ClientInterface

type ClientInterface interface {
	Middleware(next http.Handler) http.Handler
}

ClientInterface ...

func NewCORSClient

func NewCORSClient(config config.Config) ClientInterface

NewCORSClient ...

Jump to

Keyboard shortcuts

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