kubernetes/vendor/github.com/emicklei/go-restful/v3/cors_filter.go

type CrossOriginResourceSharing

// Filter is a filter function that implements the CORS flow as documented on http://enable-cors.org/server.html
// and http://www.html5rocks.com/static/images/cors_server_flowchart.png
func (c CrossOriginResourceSharing) Filter(req *Request, resp *Response, chain *FilterChain) {}

func (c CrossOriginResourceSharing) doActualRequest(req *Request, resp *Response) {}

func (c *CrossOriginResourceSharing) doPreflightRequest(req *Request, resp *Response) {}

func (c CrossOriginResourceSharing) setOptionsHeaders(req *Request, resp *Response) {}

func (c CrossOriginResourceSharing) isOriginAllowed(origin string) bool {}

func (c CrossOriginResourceSharing) setAllowOriginHeader(req *Request, resp *Response) {}

func (c CrossOriginResourceSharing) checkAndSetExposeHeaders(resp *Response) {}

func (c CrossOriginResourceSharing) checkAndSetAllowCredentials(resp *Response) {}

func (c CrossOriginResourceSharing) isValidAccessControlRequestMethod(method string, allowedMethods []string) bool {}

func (c CrossOriginResourceSharing) isValidAccessControlRequestHeader(header string) bool {}