Someone
public python v1 · immutable@view_config(route_name="test1")def do_test1(request): r = Response( body=json.dumps({'aa':'bb', 'message':'this is the message'}), content_type="application/json") r.headers['Access-Control-Allow-Origin'] = '*' # hack so that testing from file:/// works return r