Fork me on GitHub

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 ?


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


You're most welcome 😉