@app.route('/cookies')
def view_cookies(hide_env=True):
 cookies = dict(request.cookies.items())
 if (hide_env and ('show_env' not in request.args)):
  for key in ENV_COOKIES:
   try:
    del cookies[key]
   except KeyError:
    pass
 return jsonify(cookies=cookies)

@ app . route ( '/cookies' ) def view_cookies ( hide_env = True ) : cookies = dict ( request . cookies . items ( ) ) if ( hide_env and ( 'show_env' not in request . args ) ) : for key in ENV_COOKIES : try : del cookies [ key ] except KeyError : pass return jsonify ( cookies = cookies )
returns cookie data .