Block scripts with text/csv, audio/*, video/* and image/* mime types

This commit is contained in:
Fernando Jiménez Moreno 2017-03-24 19:47:56 +01:00
parent c31ee6e300
commit 29a56c4d1a
4 changed files with 83 additions and 1 deletions

View file

@ -0,0 +1,4 @@
def main(request, response):
headers = [("Content-type", request.GET.first("mime"))]
content = "console.log('Script loaded')"
return 200, headers, content