These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

CORS Policies and Developing Client-Based iParts

We are attempting to create an iPart that make an API call to a 3rd party endpoint and can successfully make the call using Postman and in the console on the 3rd party's website where the origin is the same. However, if we attempt this call from our iMIS website, we receive a CORS exception because there is no Access-Control-Allow-Origin header in the response. Ultimately, this means that server to server calls are acceptable while client to server calls are not.

Is there a way in developing these client-based iParts to make the call server to server so as to avoid the CORS issue?

I do not see anything regarding this in the documentation here, https://developer.imis.com/docs/developing-a-client-based-ipart, and it appears that developing webform-based iParts (ASCX), https://developer.imis.com/docs/developing-webform-based-iparts-ascx, is now deprecated and not usable in the cloud.