@app.route('/cookies/set')
def set_cookies(request):

    cookies = dict(request.args.items())
    r = app.make_response(redirect(url_for('view_cookies')))
    for key, value in cookies.items():
        r.set_cookie(key=key, value=value, secure=secure_cookie(request))

    return r
Sets cookie(s) as provided by the query string
dataset/ETHPy150Open mozillazg/bustard/tests/httpbin/core.py/set_cookies