Make sure Quay cannot be shown in frames

This commit is contained in:
Joseph Schorr 2013-12-28 13:28:52 -05:00
parent 3e67e39e61
commit 2e3be90054

View file

@ -20,7 +20,9 @@ logger = logging.getLogger(__name__)
def render_page_template(name):
return render_template(name, route_data = get_route_data())
resp = make_response(render_template(name, route_data = get_route_data()))
resp.headers['X-FRAME-OPTIONS'] = 'DENY'
return resp
@app.route('/', methods=['GET'], defaults={'path': ''})