Fork me on GitHub
#keechma
<
2021-02-02
>
fsd20:02:21

Hi @mihaelkonjevic, I had a quick question, the follow code snippet is from api.cljs in keechma, I have added the request payload by looking at realworld app example. I am trying to add cookie in the request headers of a ajax request not did not find any information on that would you please help me, how do I add cookie in the header or how do I add request headers?

(def default-request-config
  {:response-format :json, :keywords? true, :format :json})

(defn get-list 
  [req]
  (POST
    (str "localhost:3000/getItem")
    (assoc
      default-request-config
      :params 
      (merge
        {
         :date "02/14/2021"
         :ItemID 678
        }))))