Im trying to create a javascript frontend whom should communicate with my rails backend. I figured installing Middleman would solve the annoying errors:
XMLHttpRequest cannot load http://localhost:3000/groups.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4567' is therefore not allowed access.
Unfortunately it doesn't. I'm assuming because they're not on the same ports.
Is there a 'quick' fix for this; Or should I just add headers to my Rails project to avoid getting the XSS errors?