added http to origins in config.ru after getting message No 'Access-Control-Allow-Origin' header is present on the requested resource.