Commit 156282ae authored by Frantisek Simon's avatar Frantisek Simon
Browse files

#25 Added allow origin for Control, Map and Statistics server.

parent c6ee1e21
......@@ -18,7 +18,6 @@ package at.alladin.rmbt.controlServer;
import org.json.JSONException;
import org.json.JSONObject;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
import at.alladin.rmbt.shared.RevisionHelper;
......@@ -27,6 +26,8 @@ public class VersionResource extends ServerResource
@Get("json")
public String request(final String entity)
{
addAllowOrigin();
try
{
final JSONObject answer = new JSONObject();
......
......@@ -18,7 +18,6 @@ package at.alladin.rmbt.mapServer;
import org.json.JSONException;
import org.json.JSONObject;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
import at.alladin.rmbt.shared.RevisionHelper;
......@@ -27,6 +26,8 @@ public class VersionResource extends ServerResource
@Get("json")
public String request(final String entity)
{
addAllowOrigin();
try
{
final JSONObject answer = new JSONObject();
......
......@@ -18,7 +18,6 @@ package at.alladin.rmbt.statisticServer;
import org.json.JSONException;
import org.json.JSONObject;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
import at.alladin.rmbt.shared.RevisionHelper;
......@@ -27,6 +26,8 @@ public class VersionResource extends ServerResource
@Get("json")
public String request(final String entity)
{
addAllowOrigin();
try
{
final JSONObject answer = new JSONObject();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment