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
      

      Python language logo
      your recipe card header background
      Flask set headers in response

      Python Flask

      Shortcut: flask.route.headers

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.