gin

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: MIT Imports: 3 Imported by: 126

Documentation

Overview

Package cors/wrapper/gin provides gin.HandlerFunc to handle CORS related requests as a wrapper of github.com/rs/cors handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowAll

func AllowAll() gin.HandlerFunc

AllowAll creates a new CORS Gin middleware with permissive configuration allowing all origins with all standard methods with any header and credentials.

func Default

func Default() gin.HandlerFunc

Default creates a new CORS Gin middleware with default options.

func New

func New(options Options) gin.HandlerFunc

New creates a new CORS Gin middleware with the provided options.

Types

type Options

type Options = cors.Options

Options is a configuration container to setup the CORS middleware.

Jump to

Keyboard shortcuts

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