Installing Rack-Cors on your Rails backend is your best bet to resolving your 'Access-Control-Allow-Origin' errors.
Running on the same ports wouldn't solve this straight out the bag as its a security constraint of cors and Middleman would'nt either.
Put simply to access groups.json
you will need some form of Cors Headers present on the server