Added CORS configuration to rails application.

Added CORS configuration to rails application.