Make sure Quay cannot be shown in frames
This commit is contained in:
parent
3e67e39e61
commit
2e3be90054
1 changed files with 3 additions and 1 deletions
|
@ -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': ''})
|
||||
|
|
Reference in a new issue