def build_cors_request(url, origin_header_value):
 headers = Headers()
 if (origin_header_value is not None):
  headers['Origin'] = origin_header_value.strip()
 forged_req = FuzzableRequest(url, 'GET', headers=headers)
 return forged_req

def build_cors_request ( url , origin_header_value ) : headers = Headers ( ) if ( origin_header_value is not None ) : headers [ 'Origin' ] = origin_header_value . strip ( ) forged_req = FuzzableRequest ( url , 'GET' , headers = headers ) return forged_req
method to generate a "get" cors http request based on input context .