diff options
author | opensim mirror account | 2010-11-02 14:20:03 -0700 |
---|---|---|
committer | opensim mirror account | 2010-11-02 14:20:03 -0700 |
commit | 57632db62e883520a30117a16785a3b5dd1899fb (patch) | |
tree | 8e08ed51ba41c576dd3349e3d2a04d8202bdac44 /OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |
parent | Merge branch 'master' of /var/git/opensim/ (diff) | |
parent | Add support for cross-domain AJAX requests to REST console. (diff) | |
download | opensim-SC-57632db62e883520a30117a16785a3b5dd1899fb.zip opensim-SC-57632db62e883520a30117a16785a3b5dd1899fb.tar.gz opensim-SC-57632db62e883520a30117a16785a3b5dd1899fb.tar.bz2 opensim-SC-57632db62e883520a30117a16785a3b5dd1899fb.tar.xz |
Merge branch 'master' of /var/git/opensim/
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index ba8c194..30505f6 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -1450,6 +1450,10 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
1450 | if (responsedata.ContainsKey("reusecontext")) | 1450 | if (responsedata.ContainsKey("reusecontext")) |
1451 | response.ReuseContext = (bool) responsedata["reusecontext"]; | 1451 | response.ReuseContext = (bool) responsedata["reusecontext"]; |
1452 | 1452 | ||
1453 | // Cross-Origin Resource Sharing with simple requests | ||
1454 | if (responsedata.ContainsKey("access_control_allow_origin")) | ||
1455 | response.AddHeader("Access-Control-Allow-Origin", (string)responsedata["access_control_allow_origin"]); | ||
1456 | |||
1453 | //Even though only one other part of the entire code uses HTTPHandlers, we shouldn't expect this | 1457 | //Even though only one other part of the entire code uses HTTPHandlers, we shouldn't expect this |
1454 | //and should check for NullReferenceExceptions | 1458 | //and should check for NullReferenceExceptions |
1455 | 1459 | ||