gincors

package module
v0.0.0-...-70352f7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2016 License: BSD-2-Clause Imports: 3 Imported by: 0

README

gin-cors

Documentation

Overview

https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Allow

func Allow(opts Options) gin.HandlerFunc

Types

type Options

type Options struct {
	Origin []string // allowed origins
	Header []string // allowed headers
	Method []string // allowed methods
}

Jump to

Keyboard shortcuts

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