diff options
Diffstat (limited to 'BKULocal/src')
-rw-r--r-- | BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java index d607f67f..07cecbc4 100644 --- a/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java +++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/webapp/BKURequestHandler.java @@ -140,6 +140,8 @@ public class BKURequestHandler extends SpringBKUServlet { for (String header : responseHeaders.keySet()) { resp.setHeader(header, responseHeaders.get(header)); } + //set response header for CORS manually + resp.setHeader("Access-Control-Allow-Origin", "*"); String serverHeader = bindingProcessor.getServerHeaderValue(); if (serverHeader != null && !serverHeader.isEmpty()) { resp.setHeader(HttpUtil.HTTP_HEADER_SERVER, serverHeader); |