blob: 72cc4b2ae68cab897a7bae0b53f016b673beae16 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
function handleRequest(request, response) {
response.setHeader("Content-Type", "text/plain", false);
response.setHeader("Cache-Control", "no-cache", false);
var origin = request.hasHeader("Origin") ? request.getHeader("Origin") : "";
response.write("Origin: " + origin);
}
|