CORS failure in with Python Falcon even with heads for Auth Pre-Flight
问题 Receiving these error when using the OPTIONS verb in Angular2 http.get(url, options), even though the appropriate CORS headers are set in Falcon Rest API. XMLHttpRequest cannot load http://localhost:8000/names. Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response. resp.set_header("Access-Control-Allow-Origin", "*") resp.set_header("Access-Control-Allow-Credentials", "true") resp.set_header("Access-Control-Allow-Methods", "GET,HEAD,OPTIONS