summaryrefslogtreecommitdiffstats
path: root/dom/base/test/bug466080.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/test/bug466080.sjs')
-rw-r--r--dom/base/test/bug466080.sjs17
1 files changed, 17 insertions, 0 deletions
diff --git a/dom/base/test/bug466080.sjs b/dom/base/test/bug466080.sjs
new file mode 100644
index 000000000..0d7c089b7
--- /dev/null
+++ b/dom/base/test/bug466080.sjs
@@ -0,0 +1,17 @@
+
+function handleRequest(request, response)
+{
+ var body = "loaded";
+ var origin = "localhost";
+ try {
+ var origin = request.getHeader("Origin");
+ } catch(e) {}
+
+ response.setHeader("Access-Control-Allow-Origin",
+ origin,
+ false);
+ response.setHeader("Access-Control-Allow-Credentials", "true", false);
+ response.setHeader("Connection", "Keep-alive", false);
+
+ response.bodyOutputStream.write(body, body.length);
+}