morss: restrict iframe use from :get to avoid abuse
parent
985185f47f
commit
c1b1f5f58a
|
@ -605,7 +605,7 @@ def cgi_get(environ, start_response):
|
||||||
output = req['data']
|
output = req['data']
|
||||||
|
|
||||||
# return html page
|
# return html page
|
||||||
headers = {'status': '200 OK', 'content-type': 'text/html; charset=utf-8'}
|
headers = {'status': '200 OK', 'content-type': 'text/html; charset=utf-8', 'X-Frame-Options': 'SAMEORIGIN'} # SAMEORIGIN to avoid potential abuse
|
||||||
start_response(headers['status'], list(headers.items()))
|
start_response(headers['status'], list(headers.items()))
|
||||||
return [output]
|
return [output]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue