parameters: (csp, directive, known_bypasses)
return_statement: return bypasses
docstring: Check an individual directive (e.g. `script-src') to see if it contains
  	any domains that host known CSP bypasses.
docstring_summary: Check an individual directive (e.g. `script-src') to see if it contains
  	any domains that host known CSP bypasses.
docstring_tokens: Check an individual directive ( e . g . script - src ) to see if it contains any domains that host known CSP bypasses .
function: def _bypassCheckDirective(csp, directive, known_bypasses):
  	"""
  	Check an individual directive (e.g. `script-src') to see if it contains
  	any domains that host known CSP bypasses.
  	"""
  	bypasses = []
  	for src in csp[directive]:
  		if src.startswith("'") or src in [HTTP, HTTPS, DATA, BLOB]:
  			continue  # We only care about domains
  
  		# Iterate over all bypasses and check if `src' allows loading
  		# content from `domain' if so, we have a bypass!
  		for domain, payload in known_bypasses:
  			if csp_match_domains(src, domain):
  				bypasses.append((domain, payload,))
  	return bypasses
function_tokens: def _bypassCheckDirective ( csp , directive , known_bypasses ) : bypasses = [ ] for src in csp [ directive ] : if src . startswith ( "'" ) or src in [ HTTP , HTTPS , DATA , BLOB ] : continue # We only care about domains # Iterate over all bypasses and check if `src' allows loading # content from `domain' if so, we have a bypass! for domain , payload in known_bypasses : if csp_match_domains ( src , domain ) : bypasses . append ( ( domain , payload , ) ) return bypasses