r0man / ring-cors

Ring middleware for Cross-Origin Resource Sharing.
http://github.com/r0man/ring-cors
166 stars 44 forks source link

Set Access-Control-Allow-Credentials #31

Closed matheusantonio closed 4 years ago

matheusantonio commented 4 years ago

It seems that I need to set Access-Control-Allow-Credentials to true, but I couldn't find this configuration in the middleware.

matheusantonio commented 4 years ago

Apparently I just needed to set: :access-control-allow-credentials "true", as a string. I suggest a mention in the README that the values used as example aren't the only ones supported.