RestAPI: Added support for CORS (Cross-Origin Resource Sharing)