Re: Ring Mock and Ring Anti Forgery

2015-09-06 Thread Nicolás Berger
>From the ring-anti-forgery tests [1] I see that it expects the token to be both in the session under the `::af/anti-forgery-token` key and in the `:form-params` in the request as `__anti-forgery-token`, so you can do something like: ``` (require '[ring.middleware.anti-forgery :as af]) (deftest m

Ring Mock and Ring Anti Forgery

2015-09-06 Thread Mathieu
I want to test a compojure webapp, but i don't know how to use Ring-Anti-Forgery inside Ring-Mock. Actually, all my post requests in my test return 403. Any idea ? Thanks -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send