aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 52a4d92..562032d 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -1262,6 +1262,7 @@ namespace OpenSim.Framework.Servers.HttpServer
1262 1262
1263 // if the method wasn't found, we can't determine KeepAlive state anyway, so lets do it only here 1263 // if the method wasn't found, we can't determine KeepAlive state anyway, so lets do it only here
1264 response.KeepAlive = keepAlive; 1264 response.KeepAlive = keepAlive;
1265 response.AddHeader("Access-Control-Allow-Origin", "*");
1265 } 1266 }
1266 else 1267 else
1267 { 1268 {
@@ -1700,6 +1701,9 @@ namespace OpenSim.Framework.Servers.HttpServer
1700 switch (request.HttpMethod) 1701 switch (request.HttpMethod)
1701 { 1702 {
1702 case "OPTIONS": 1703 case "OPTIONS":
1704 response.AddHeader("Access-Control-Allow-Origin", "*");
1705 response.AddHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT, OPTIONS");
1706 response.AddHeader("Access-Control-Allow-Headers", "Content-Type");
1703 response.StatusCode = (int)OSHttpStatusCode.SuccessOk; 1707 response.StatusCode = (int)OSHttpStatusCode.SuccessOk;
1704 return null; 1708 return null;
1705 1709