blob: 49a3160f4e17994e5a18d7af3acd167029793eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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);
}
|