Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeParseURL ¶ added in v1.1.0
NormalizeParseURL takes a raw URL string, parses it into a *url.URL, and normalizes it by converting the host to lowercase.
func NormalizeURL ¶ added in v1.1.0
NormalizeURL takes a raw URL string and normalizes it by converting the host to lowercase.
func StripURLQuery ¶ added in v1.1.0
StripURLQuery takes a raw URL string, normalizes it, and returns the URL without the query string.
Types ¶
type CorsProxy ¶
type CorsProxy struct {
// contains filtered or unexported fields
}
CorsProxy holds the configuration and state for the CORS proxy.
type Options ¶
type Options struct { cors.Options // AllowedTargets is a list of targets a cross-domain request can reach. // If the special "*" value is present in the list, all targets will be allowed except private network targets if `AllowPrivateNetworkTarget` is false. // A target may contain a wildcard (*) to replace 0 or more characters (i.e.: `http://*.domain.com`). // Only one wildcard can be used per target. // Default value is ["*"] AllowedTargets []string // AllowPrivateNetworkTarget indicates whether to accept private network targets. // If a private network target has been added to `AllowedTargets`, there is no need to set `AllowPrivateNetworkTarget` explicitly. AllowPrivateNetworkTarget bool }
Options defines the configuration for the CORS proxy.
Click to show internal directories.
Click to hide internal directories.