(compile-cors-config config)
Compile CORS config to map[string,CORSOriginHandler]
Compile CORS config to map[string,CORSOriginHandler]
(add-headers-to-response this response)
Add CORS headers to response for the origin
Add CORS headers to response for the origin
(origin this)
Origin that this handler can handle
Origin that this handler can handle
(preflight-response this)
Success preflight response for the origin
Success preflight response for the origin
(get-origin req)
(handle-preflight cors-handler request-origin forbidden-response ok-response)
(make-cors-preflight-handler cors forbidden-response ok-response)
Create a ring handler fn that only handle preflight request
Create a ring handler fn that only handle preflight request
(preflight-request? req)
Check if the ring request is a valid preflight request
Check if the ring request is a valid preflight request
(preflight-response-headers config origin)
Generate preflight response headers from config
Generate preflight response headers from config
(response-headers config origin)
Generate CORS headers for a valid request
Generate CORS headers for a valid request
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close