status-code.py (363B)
1 def main(request, response): 2 status = request.GET.first(b'status') 3 response.status = (status, b""); 4 if b'tao_value' in request.GET: 5 response.headers.set(b'timing-allow-origin', request.GET.first(b'tao_value')) 6 if b'allow_origin' in request.GET: 7 response.headers.set(b'access-control-allow-origin', request.GET.first(b'allow_origin'))