mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
10 lines
318 B
JavaScript
10 lines
318 B
JavaScript
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);
|
|
}
|