aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web')
-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);
}