Radhwen saidi

Radhwen saidi

  • 2.1k
  • 1
  • 994

problem Kendo UI grid getting data from Dynamics CRM

Jun 6 2016 6:05 PM
Hello every one,
I have a strange problem getting data from Dynamics CRM online into a kendo UI data grid , when I inspect with chrome browser, I get sometimes this error
 
XMLHttpRequest cannot load https://cynapsyscrm.api.crm4.dynamics.com/api/data/v8.1/accounts?%24top=20. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4563' is therefore not allowed access. The response had HTTP status code 401.
 
but when I use CORS this error disappear and I get new error indicating that the request is UNAUTHORIZED 401, 
 
Please help me with this error, in attachment you find my source code
THANKS A LOT