Mercurial > hg > ismi-richfaces
changeset 75:43648d7fc515
add CORS header ACAO:* to JSON interface.
author | casties |
---|---|
date | Thu, 21 Jan 2016 12:16:45 +0100 |
parents | a58e6b2fb87f |
children | 45b921e683d6 |
files | src/main/java/de/mpiwg/itgroup/ismi/servlets/JSONInterface.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {