summaryrefslogtreecommitdiffstats
path: root/dom/security/test/csp/file_path_matching_redirect_server.sjs
blob: bed3a1dccf973bd305de175c142e457453f76677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Redirect server specifically to handle redirects
// for path-level host-source matching
// see https://bugzilla.mozilla.org/show_bug.cgi?id=808292

function handleRequest(request, response) {
  var newLocation =
    "http://test1.example.com/tests/dom/security/test/csp/file_path_matching.js";

  response.setStatusLine("1.1", 302, "Found");
  response.setHeader("Cache-Control", "no-cache", false);
  response.setHeader("Location", newLocation, false);
}