title: java spark framework can not set or read cookie
body: <p>I am new to the spark framework. I got problem when i was trying to set cookie to response or read cookie from request.</p>
  
  <p>The route:</p>
  
  <pre><code>post("/test/set/cookie", TestController.setCookie);
          get("/test/get/cookie", TestController.getCookie);
          post("/test/remove/cookie", TestController.removeCookie);
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>public static Route setCookie = (Request request, Response response) -&gt; {
          System.out.println("set");
          String id = UUID.randomUUID().toString();
          response.cookie("test1", id, 3600, false, true);
          return "done";
      };
  
      public static Route getCookie = (Request request, Response response) -&gt; {
          System.out.println("get");
          String cookie = request.cookie("test1");
          System.out.println(cookie);
          return "done";
      };
  
      public static Route removeCookie = (Request request, Response response) -&gt; {
          System.out.println("remove");
          response.removeCookie("test1");
          return "done";
      };
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/djVIz.png" rel="nofollow noreferrer">Postman set cookie</a></p>
  
  <p><a href="https://i.stack.imgur.com/uMPYK.png" rel="nofollow noreferrer">Postman get cookie faile</a></p>
  
  <p>what i am missing?</p>