Skip to content

Instantly share code, notes, and snippets.

@keddad

keddad/poc.py Secret

Created December 14, 2021 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keddad/e2ce034f68b77e59077cdb1e887fa4a1 to your computer and use it in GitHub Desktop.
Save keddad/e2ce034f68b77e59077cdb1e887fa4a1 to your computer and use it in GitHub Desktop.
from flask import Flask, make_response
app = Flask(__name__)
@app.route('/')
def index():
resp = make_response()
resp.headers["Set-Cookie"] = "foo=baz; Domain=localhost;"
return resp
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment