How to use CORS in Restlet 2.3.1?
问题 I'm trying to set the 'Access-Control-Allow-Origin: *' header for the response. However, the header is not present. What am I doing wrong? public class JsonApplication extends Application { private static final String SERVER_URL = "http://localhost:8111"; public static void main(String[] args) throws Exception { Server testServer = new Server(Protocol.HTTP, 8111); JsonApplication jsonApplication = new JsonApplication(); CorsService corsService = new CorsService(); corsService