Commit c7063454 authored by Laura Schlimmer's avatar Laura Schlimmer
Browse files

added Access-Control... header

parent 3e0d5234
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ void HTTPAPIServlet::handleHTTPRequest(
  URI uri(req->uri());

  res->addHeader("Access-Control-Allow-Origin", "*");

  try {
    if (StringUtil::endsWith(uri.path(), "/insert")) {
      return insertSample(req, res, &uri);