Got RESTful API working for cross-domain requests.