This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-21
Channels
- # aleph (2)
- # beginners (22)
- # boot (7)
- # chestnut (8)
- # cider (4)
- # clara (3)
- # cljs-dev (3)
- # cljs-experience (19)
- # clojure (69)
- # clojure-italy (8)
- # clojure-nl (1)
- # clojure-spec (11)
- # clojure-uk (17)
- # clojurescript (77)
- # cursive (22)
- # datomic (14)
- # events (1)
- # fulcro (78)
- # hoplon (51)
- # jobs (3)
- # keechma (1)
- # lambdaisland (1)
- # lumo (30)
- # off-topic (42)
- # om (22)
- # onyx (5)
- # parinfer (4)
- # portkey (1)
- # re-frame (15)
- # reagent (2)
- # ring (4)
- # spacemacs (1)
- # specter (23)
- # testing (1)
- # unrepl (60)
- # yada (8)
hi, i have an app behind a proxy (caddy) for ssl, i've added the ssl middleware to parse the x-forwarded-proto
header, this works fine, the schema is correctly set to :https
, however, my (response/found "/redirect-target")
results in a location header without the correct schema, i think i'm doing something wrong here, i'll tried to find the code where ring will create a absolute URL from the relative to set breakpoint there, but i didn't found it.
okay, it seems that the request in ring.util.request/request-url
is not the the one that i see in my handler
the :scheme
there is :http
, i added the ring.middleware.ssl/wrap-forwarded-scheme
middleware as soon as i can, i'm used luminus-template for bootstrapping adding the middleware in front of all others in wrap-base
@derveloper You may want to look at the Ring-Default project, which manages common Ring middleware.