package
Version:
v1.0.0-rc.3
Opens a new window with list of versions in this module.
Published: Nov 12, 2020
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.