mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Removing redundancy
This commit is contained in:
committed by
Rodrigo Chacon
parent
50ddd78b89
commit
faf559dcf5
@@ -45,7 +45,6 @@ sentry = Sentry(app)
|
||||
def set_cors_headers(response):
|
||||
response.headers['Access-Control-Allow-Origin'] = '*'
|
||||
if request.method == 'OPTIONS':
|
||||
response.headers['Access-Control-Allow-Origin'] = '*'
|
||||
response.headers['Access-Control-Allow-Credentials'] = 'true'
|
||||
response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, DELETE, PATCH, OPTIONS'
|
||||
response.headers['Access-Control-Max-Age'] = str(60 * 60) # 1 hour cache
|
||||
|
||||
Reference in New Issue
Block a user