def ckan_after_request(response):
 response = check_session_cookie(response)
 response = set_cors_headers_for_response(response)
 return response

def ckan_after_request ( response ) : response = check_session_cookie ( response ) response = set_cors_headers_for_response ( response ) return response
common handler executed after all flask requests .