mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Do not 403 CORS requests with non-allowed origin.
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user