Enabled CORS
Added sample API