blob: bde867c93e77b77e029a9a0f08657b1884089b8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
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");
}
|