Closed rgkirch closed 2 years ago
Hi,
You can let the http library do it for you, to make the request identical to your working example:
{:name ::cors
:enter #(assoc-in % [:request :with-credentials?] false)}
The request map is passed directly to the http library, so it should work. Not sure if it does anything other than set the header like you were trying, but I'm guessing it does.
(You were doing the right thing to set headers, as you saw from the request-for
result, but I think just setting the header is not enough)
Thank you! Yea, associng :with-credentials? worked.
I can't figure out how to set headers. I'm making a cors request and I need "withCredentials" to be false. This gives me a cors error.
cors error
This doesn't give me a cors error.
Thanks!