blob: 8476a61724cd0f7628451eb368ea7ffc6620b03d (
plain)
1
2
3
4
5
6
7
8
9
|
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);
}
|