Liking cljdoc? Tell your friends :D

simple-cors.core


compile-cors-configclj/s

(compile-cors-config config)

Compile CORS config to map[string,CORSOriginHandler]

Compile CORS config to map[string,CORSOriginHandler]
raw docstring

CORSOriginHandlerclj/sprotocol

add-headers-to-responseclj/s

(add-headers-to-response this response)

Add CORS headers to response for the origin

Add CORS headers to response for the origin

originclj/s

(origin this)

Origin that this handler can handle

Origin that this handler can handle

preflight-responseclj/s

(preflight-response this)

Success preflight response for the origin

Success preflight response for the origin

CORSOriginStaticHandlerImplcljs


default-preflight-forbidden-responseclj/s


default-preflight-ok-responseclj/s


get-originclj/s

(get-origin req)

handle-preflightclj/s

(handle-preflight cors-handler request-origin forbidden-response ok-response)

make-cors-preflight-handlerclj/s

(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
raw docstring

preflight-request?clj/s

(preflight-request? req)

Check if the ring request is a valid preflight request

Check if the ring request is a valid preflight request
raw docstring

preflight-response-headersclj/s

(preflight-response-headers config origin)

Generate preflight response headers from config

Generate preflight response headers from config
raw docstring

response-headersclj/s

(response-headers config origin)

Generate CORS headers for a valid request

Generate CORS headers for a valid request
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close