parameters: (resp, options)
return_statement: return resp
docstring: Performs the actual evaluation of Flas-CORS options and actually
      modifies the response object.
  
      This function is used both in the decorator and the after_request
      callback
docstring_summary: Performs the actual evaluation of Flas-CORS options and actually
      modifies the response object.
docstring_tokens: Performs the actual evaluation of Flas - CORS options and actually modifies the response object .
function: def set_cors_headers(resp, options):
      """
      Performs the actual evaluation of Flas-CORS options and actually
      modifies the response object.
  
      This function is used both in the decorator and the after_request
      callback
      """
  
      # If CORS has already been evaluated via the decorator, skip
      if hasattr(resp, FLASK_CORS_EVALUATED):
          debugLog("CORS have been already evaluated, skipping")
          return resp
  
      headers_to_set = get_cors_headers(options, request.headers, request.method, resp.headers)
  
      debugLog("Settings CORS headers: %s", str(headers_to_set))
  
      for k, v in headers_to_set.items():
          resp.headers.add(k, v)
  
      return resp
function_tokens: def set_cors_headers ( resp , options ) : # If CORS has already been evaluated via the decorator, skip if hasattr ( resp , FLASK_CORS_EVALUATED ) : debugLog ( "CORS have been already evaluated, skipping" ) return resp headers_to_set = get_cors_headers ( options , request . headers , request . method , resp . headers ) debugLog ( "Settings CORS headers: %s" , str ( headers_to_set ) ) for k , v in headers_to_set . items ( ) : resp . headers . add ( k , v ) return resp