<div dir="ltr"><span style="font-size:12.8px">In a Flask web app I'm building, I have a number of pages. Each page has essentially the same HTTP response headers, such as:</span><div style="font-size:12.8px"><div>    r = make_response(render_template(<wbr>'response.html' **templateData))</div><div>    r.headers.set('Content-<wbr>Security-Policy', "default-src 'self'; script-src 'nonce-" + str(scriptNonce) + "' 'self'")</div><div>    r.headers.set('X-XSS-<wbr>Protection', '1; mode=block')</div><div>    r.headers.set('X-Content-Type-<wbr>Options', 'nosniff')</div><div>    r.headers.set('X-Frame-<wbr>Options', 'deny')</div><div>    r.headers['Server'] = '' # Can't remove it, so set it to nothing</div><div>    return r</div><div><br></div><div>Is there a way to templatize this, so it's the same for every page?</div><div><br></div><div>John O.</div></div></div>