 (def app
   (-> app-routes
       (wrap-defaults (assoc-in site-defaults [:security :anti-forgery] false))
+      (wrap-cors :access-control-allow-origin [#".*"]
+                 :access-control-allow-methods [:get :put :post :delete])
       (ring-json/wrap-json-body)
       (ring-json/wrap-json-response)))
 


(def content-type  "application/json; charset=utf-8")

(defroutes app-routes
  (GET "/" [] home)
  (GET "/lfpr" [] (rr/content-type
                   (rr/response  (db/get-lfpr))
                   "application/json; charset=utf-8"))
  (GET "/lfpr/:type" [type]
       (rr/content-type
        (rr/response  (db/get-lfpr-by-type {:type type}))
        "application/json; charset=utf-8"))

  (GET "/wpr" [] (rr/content-type
                  (rr/response  (db/get-wpr))

   [ring.util.response	:as rr]
   [ring.middleware.defaults :refer [wrap-defaults site-defaults]]
   [compojure.response :refer [render]]
   [clojure.java.io :as io]
   [ring.middleware.cors :refer [wrap-cors]])
  (:gen-class))

(defn home
