Fork me on GitHub
#reitit
<
2021-08-08
>
wcf18:08:25

Hi, I'm in the process of learning reitit, and I developed a simple program that has an endpoint and I'm trying to send a POST request to this endpoint using another simple application in clojurescript. However after sending the request I got the following error on my browser console `Access to XMLHttpRequest at 'http://localhost:3001/api/scramble' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.` I already tried [ring-cors "0.1.13"] with differents configurations of middleware. But didn't work. Can help me solve that ?

wcf19:08:56

Hey @dharrigan, With this example this example you provided, I managed to make it work. Thanks a lot !

dharrigan19:08:01

You're most welcome 😉