tor-browser

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

set_cookie_xhr.sjs (362B)


      1 function handleRequest(request, response) {
      2   var queryString = request.queryString;
      3   switch (queryString) {
      4     case "xhr1":
      5       response.setHeader("Set-Cookie", "xhr1=xhr_val1; path=/", false);
      6       break;
      7     case "xhr2":
      8       response.setHeader(
      9         "Set-Cookie",
     10         "xhr2=xhr_val2; path=/; HttpOnly",
     11         false
     12       );
     13       break;
     14   }
     15 }