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