mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Block scripts with text/csv, audio/*, video/* and image/* mime types
This commit is contained in:
parent
c31ee6e300
commit
29a56c4d1a
4 changed files with 83 additions and 1 deletions
|
@ -0,0 +1,4 @@
|
|||
def main(request, response):
|
||||
headers = [("Content-type", request.GET.first("mime"))]
|
||||
content = "console.log('Script loaded')"
|
||||
return 200, headers, content
|
Loading…
Add table
Add a link
Reference in a new issue