tor-browser

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

access-control-origin-header.py (421B)


      1 def main(request, response):
      2    response.headers.set(b"Content-Type", b"text/plain")
      3    response.headers.set(b"Cache-Control", b"no-cache, no-store")
      4    response.headers.set(b"Access-Control-Allow-External", b"true")
      5    response.headers.set(b"Access-Control-Allow-Origin", b"*")
      6 
      7    response.content = b"PASS: Cross-domain access allowed.\n"
      8    response.content += b"HTTP_ORIGIN: " + request.headers.get(b"origin")