code: def add_headers(self, app):
          
          @app.after_request
          def after_request(response):  # noqa
              for header, value in self.config.get('headers'):
                  response.headers[header] = value
              return response
docs: Inject headers after request