Skip to content
Permalink
Browse files

Allow CORS on HTTP About Page

  • Loading branch information...
tresf committed Apr 2, 2019
1 parent d6128f0 commit 7af18e2be0fa4db7b852509132d74936de7b5dd5
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/qz/ws/HttpAboutServlet.java
@@ -32,6 +32,7 @@

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) {
response.setHeader("Access-Control-Allow-Origin", "*");
if ("application/json".equals(request.getHeader("Accept")) || "/json".equals(request.getServletPath())) {
generateJsonResponse(request, response);
} else if ("application/x-x509-ca-cert".equals(request.getHeader("Accept")) || request.getServletPath().startsWith("/cert/")) {

0 comments on commit 7af18e2

Please sign in to comment.
You can’t perform that action at this time.