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

added Access-Control... header

parent 05ba0dd0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ void HTTPAPIServlet::handleHTTPRequest(
    fnord::http::HTTPResponse* res) {
  URI uri(req->uri());

  res->addHeader("Access-Control-Allow-Origin", "*");
  try {
    if (StringUtil::endsWith(uri.path(), "/insert")) {
      return insertSample(req, res, &uri);