aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-29 12:12:27 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-29 12:12:27 +1300
commit5d89531bbd3f5bf5e0b149a5374c352445f2a715 (patch)
tree376fe5c0990f54b010c29b6fb7f0f93cc9ff56c1 /src/org/traccar
parentd6f63ef1ac9e1b66205d3671d63058b2684b34ab (diff)
downloadtrackermap-server-5d89531bbd3f5bf5e0b149a5374c352445f2a715.tar.gz
trackermap-server-5d89531bbd3f5bf5e0b149a5374c352445f2a715.tar.bz2
trackermap-server-5d89531bbd3f5bf5e0b149a5374c352445f2a715.zip
Add HTTP CORS header (fix #1434)
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/web/BaseServlet.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/web/BaseServlet.java b/src/org/traccar/web/BaseServlet.java
index 972a1b8e7..9b6964623 100644
--- a/src/org/traccar/web/BaseServlet.java
+++ b/src/org/traccar/web/BaseServlet.java
@@ -41,6 +41,7 @@ public abstract class BaseServlet extends HttpServlet {
try {
resp.setContentType("application/json");
resp.setCharacterEncoding("UTF-8");
+ resp.setHeader("Access-Control-Allow-Origin", "*");
if (!handle(command, req, resp)) {
resp.sendError(HttpServletResponse.SC_BAD_REQUEST);
}