// shouldSkipAuthentication contains conditions for skipping authentication.
// Conditions should be few in number and have strong justifications.
shouldSkipAuthentication contains conditions for skipping authentication.
Conditions should be few in number and have strong justifications.
// shouldSkipAuthentication contains conditions for skipping authentication . // Conditions should be few in number and have strong justifications .
func (p *Proxy) shouldSkipAuthentication(r *http.Request) bool {
	pol, foundPolicy := p.policy(r)
	if isCORSPreflight(r) && foundPolicy && pol.CORSAllowPreflight {
		log.FromRequest(r).Debug().Msg("proxy: skipping authentication for valid CORS preflight request")
		return true
	}
	return false
}
func ( p * Proxy ) shouldSkipAuthentication ( r * http . Request ) bool { pol , foundPolicy := p . policy ( r ) if isCORSPreflight ( r ) && foundPolicy && pol . CORSAllowPreflight { log . FromRequest ( r ) . Debug ( ) . Msg ( " " ) return true } return false }
shouldSkipAuthentication contains conditions for skipping authentication.
shouldSkipAuthentication contains conditions for skipping authentication .