package
Version:
v0.12.0
Opens a new window with list of versions in this module.
Published: Sep 10, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package cors handles cross-origin HTTP requests (CORS).
Handler wraps an http.Handler instance to provide configurable CORS support. CORS headers will be added to all
responses.
ServeHTTP adds the correct CORS headers based on the origin and returns immediately
with a 200 OK if the method is OPTIONS.
Info represents a set of allowed origins.
OriginAllowed determines whether the server will allow a given CORS origin.
Set implements the flag.Value interface to allow users to define a list of CORS origins
Source Files
¶
Click to show internal directories.
Click to hide internal directories.