Forum Discussion

amalwayscharan's avatar
amalwayscharan
Copper Contributor
Jul 29, 2019
Solved

SharePoint Office 365 : CORS issue, REST API call to other application from SharePoint Online

When trying to access 3rd party REST API (EasyVista) from SharePoint web page, it shows No 'Access-Control-Allow-Origin' header is present on the requested resource. I've tried passing username and ...
  • paulpascha's avatar
    Jul 30, 2019
    CORS policies need to be configured on the EasyVista side to allow calls from JavaScript hosted in your SharePoint site which is in another domain. I don't know EasyVista and the options it provides for configuring CORS, maybe it provides support for JSONP as an alternative.

    Alternatively you could develop your own Web API as a wrapper around the EasyVista service and configure CORS for your Web API. Server-side calls between your Web API and EasyVista won't be an issue.

    Does this make sense?

Resources