Fork me on GitHub
#ring
<
2020-06-29
>
ouvasam07:06:40

Hi all, I have some trouble to set the name of the cookie for the ring-session Here is what i have but the name of the cookie stay ring-sesssion If someone have an idea ?

(def my-site-defaults
  "A default configuration for a browser-accessible website that's accessed
  securely over HTTPS."
  (-> api-defaults
      (assoc-in [:session :cookie-name] "jsessionid")))

(def fw-app
  (-> (handler/site app-routes)
      (reload/wrap-reload)
      (wrap-default-charset "utf-8")
      (wrap-defaults my-site-defaults)
      (wrap-multipart-params)
      (wrap-json-params)
      (wrap-json-response {:pretty false})
      (wrap-gzip)))

ouvasam08:06:13

It seems my problem is with anti-forgery when using site-default

ouvasam08:06:12

<h1>Invalid anti-forgery token</h1>

ouvasam08:06:03

setting anti-forgery to false make my site work but can't rename the cookie...

ouvasam09:06:52

i use http-kit may be there is a problem here ?