# HG changeset patch # User casties # Date 1453375005 -3600 # Node ID 43648d7fc51573e72666008bb1672a5fcbdfa020 # Parent a58e6b2fb87f78a9ed1fe85c6535533aa0eff949 add CORS header ACAO:* to JSON interface. diff -r a58e6b2fb87f -r 43648d7fc515 src/main/java/de/mpiwg/itgroup/ismi/servlets/JSONInterface.java --- a/src/main/java/de/mpiwg/itgroup/ismi/servlets/JSONInterface.java Thu Jan 07 16:26:48 2016 +0100 +++ b/src/main/java/de/mpiwg/itgroup/ismi/servlets/JSONInterface.java Thu Jan 21 12:16:45 2016 +0100 @@ -52,6 +52,8 @@ this.response = response; this.response.setContentType("application/json; charset=UTF-8"); //this.response.setContentType("text/html; charset=UTF-8"); + // set static CORS header + this.response.setHeader("Access-Control-Allow-Origin", "*"); try { request.setCharacterEncoding("UTF-8"); } catch (UnsupportedEncodingException e) {