content/base/test/bug282547.sjs
author Margaret Leibovic <margaret.leibovic@gmail.com>
Mon, 25 Aug 2014 15:28:10 -0700
changeset 216776 8d7b3bfaf3ab9bb3c32afb51d9714246d7c854f4
parent 117907 651bd0042def36d5b541cfc48c96f7bbb9dbe5ee
permissions -rw-r--r--
Bug 996753 - Telemetry probes for settings pages. r=liuche, a=sledru

function handleRequest(request, response)
{
  response.setStatusLine(null, 401, "Unauthorized");

  response.setHeader("WWW-Authenticate", "basic realm=\"restricted\"", false);

  response.setHeader("Access-Control-Allow-Origin", "*", false);
  response.setHeader("Access-Control-Allow-Credentials", "true", false);
}