your recipe card header background

    Flask set headers in response

    0

    0

    Python Flask

    Library: flask

    Shortcut: flask.route.headers

    from flask import make_response
    
    @app.route("/route")
    def myroute():
      resp = make_response(render_template('template.html'))
      resp.headers['X-Something'] = 'A value'
      return resp
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.