You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/06/15 22:34:51 UTC
incubator-joshua git commit: added return header to enable cross-site
scripting requests
Repository: incubator-joshua
Updated Branches:
refs/heads/master 0273cbb56 -> 24a93c26c
added return header to enable cross-site scripting requests
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/24a93c26
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/24a93c26
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/24a93c26
Branch: refs/heads/master
Commit: 24a93c26cefb0ab2cf96f53e9b414ebe02a81b85
Parents: 0273cbb
Author: Matt Post <po...@cs.jhu.edu>
Authored: Wed Jun 15 15:34:47 2016 -0700
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Wed Jun 15 15:34:47 2016 -0700
----------------------------------------------------------------------
src/main/java/org/apache/joshua/server/ServerThread.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/24a93c26/src/main/java/org/apache/joshua/server/ServerThread.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/joshua/server/ServerThread.java b/src/main/java/org/apache/joshua/server/ServerThread.java
index ccadc2d..4ad1543 100644
--- a/src/main/java/org/apache/joshua/server/ServerThread.java
+++ b/src/main/java/org/apache/joshua/server/ServerThread.java
@@ -128,6 +128,7 @@ public class ServerThread extends Thread implements HttpHandler {
public HttpWriter(HttpExchange client) {
this.client = client;
+ client.getResponseHeaders().add("Access-Control-Allow-Origin", "*");
}
@Override