tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

clear-site-data.py (474B)


      1 """
      2 Step 5 (/client-hints/clear-site-data/clear-site-data-{}.https.html)
      3 """
      4 def main(request, response):
      5    content = u'''
      6        <script>
      7            window.onload = function() {
      8                window.location.href = "/client-hints/clear-site-data/resources/check-client-hints.py";
      9            };
     10        </script>'''
     11    headers = [(b"Content-Type", b"text/html"), (b"Clear-Site-Data", b'"%s"' % (request.GET.first(b"target", b"*")))]
     12    return 200, headers, content