(csp, directive, known_bypasses)
return bypasses
Check an individual directive (e.g. `script-src') to see if it contains
	any domains that host known CSP bypasses.
Check an individual directive (e.g. `script-src') to see if it contains
	any domains that host known CSP bypasses.
Check an individual directive ( e . g . script - src ) to see if it contains any domains that host known CSP bypasses .
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
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