Delivery-focussed Elixir, Python, XSL/XQuery, (No)SQL, and Agile consultancy, specialising in content migration, API design, and (micro)services.
CORS and Ramses
Recently I used Ramses to quickly knock-up a mock service for a React developer I’m working with, so he could make headway while the team built-out the API he would eventually use.
If you’ve not seen Ramses it’s a great little framework for knocking up RESTish APIs quickly.
Following the docs will only get you half-way there. What you’ll also need to do is add the
method in your
RAML config for the root endpoint, so that the CORS preflight check passes.
/api: get: description: ... options: description: ... post: description: ...
Hope this helps!