Do not 403 CORS requests with non-allowed origin.

This commit is contained in:
Max Goodman
2011-10-06 19:41:30 -07:00
parent 3752c677ca
commit 575b3bd8df

View File

@@ -664,8 +664,6 @@ class MinimalController(BaseController):
response.headers["Access-Control-Allow-Origin"] = origin
if cors.get("allow_credentials"):
response.headers["Access-Control-Allow-Credentials"] = "true"
else:
self.abort403()
def OPTIONS(self):
"""Return empty responses for CORS preflight requests"""