mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-24 09:32:53 +00:00
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
|
|
function handleRequest(request, response)
|
|
{
|
|
// avoid confusing cache behaviors
|
|
response.setHeader("Cache-Control", "no-cache", false);
|
|
response.setHeader("Content-Type", "text/plain", false);
|
|
response.setHeader("Access-Control-Allow-Origin", "*", false);
|
|
|
|
// echo method
|
|
response.write(request.method);
|
|
}
|
|
|