cors

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2014 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package cors contains filters to handle CORS related requests defined from http://www.w3.org/TR/cors/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(origin string, next http.Handler) http.Handler

Get implements a simple read-only access control policy handling preflight and normal requests with a cache age of 10 minutes for preflight requests. Methods other than HEAD, OPTIONS, GET will return 405.

The origin parameter should be the case-insentive fully qualified origin domain to match or '*' to match any domain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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