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.sjs14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/base/test/bug466080.sjs b/dom/base/test/bug466080.sjs
new file mode 100644
index 0000000000..df3687000b
--- /dev/null
+++ b/dom/base/test/bug466080.sjs
@@ -0,0 +1,14 @@
+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("Access-Control-Allow-Methods", "XMETHOD", false);
+ response.setHeader("Connection", "Keep-alive", false);
+
+ response.bodyOutputStream.write(body, body.length);
+}