tor-browser

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

cross-origin-module.py (361B)


      1 def main(request, response):
      2    headers = [
      3        (b"Content-Type", b"text/javascript"),
      4        (b"Access-Control-Allow-Origin", request.headers.get(b"Origin")),
      5        (b"Timing-Allow-Origin", request.headers.get(b"Origin")),
      6        (b"Access-Control-Allow-Credentials", b"true")
      7    ]
      8 
      9    return headers, u"// Cross-origin module, nothing to see here"