def after_request(self, response):
        ctx = _request_ctx_stack.top
        headers = response.headers
        headers['Server'] = self.banner
        headers['X-Frame-Options'] = 'DENY'
        headers['X-XSS-Protection'] = '1'
        if self.cookie_httponly and 'Set-Cookie' in response.headers:
            headers['Set-Cookie'] += '; HttpOnly'
        if ctx.request_json and not ctx.forbidden:
            headers['Content-Type'] = 'application/json; charset=utf-8'
            headers['X-Content-Type-Options'] = 'nosniff'
        return response
dataset/ETHPy150Open lanius/flask-mitten/flaskext/mitten.py/Mitten.after_request/original