Source code
Revision control
Copy as Markdown
Other Tools
/* Any copyright is dedicated to the Public Domain.
function handleRequest(req, resp) {
resp.setHeader("Content-Type", "text/html", false);
if (req.hasHeader("Origin") && req.getHeader("Origin") != "null") {
resp.write("error");
return;
}
resp.write("hello world");
}