tor-browser

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

server_manifest_wrong_provider_in_manifest.sjs (688B)


      1 /* Any copyright is dedicated to the Public Domain.
      2  * http://creativecommons.org/publicdomain/zero/1.0/
      3  */
      4 
      5 function handleRequest(request, response) {
      6   response.setHeader("Access-Control-Allow-Origin", "*");
      7   response.setHeader("Content-Type", "application/json");
      8   let content = {
      9     accounts_endpoint:
     10       "https://example.net/tests/dom/credentialmanagement/identity/tests/mochitest/server_simple_accounts.sjs",
     11     id_assertion_endpoint:
     12       "https://example.net/tests/dom/credentialmanagement/identity/tests/mochitest/server_simple_idtoken.sjs",
     13   };
     14   let body = JSON.stringify(content);
     15   response.setStatusLine(request.httpVersion, 200, "OK");
     16   response.write(body);
     17 }