Discussions

Does Eloqua REST API supports CORS

Wayne Chan-Oracle
Wayne Chan-Oracle Posts: 34 Employee
edited Jan 11, 2019 12:40AM in Developer Tools

Hi,

I am exploring to exercise Eloqua REST API from within a browser using some JS framework (e.g. Angular7). Most browsers (Chrome, Firefox or Safari) will block the Eloqua API calls as it is cross domain in nature and resulted in CORS errors. I attempted to follow  CORS's protocols by sending out OPTIONS preflight call to Eloqua site but no CORS responses back from Eloqua site such as "ACCESS-Allow-Control-Origin" headers to proceed. Does this indicate Eloqua site doe snot support CORS REST/API access.

If so can the expert from this site suggests an alternative means to access REST/API using JS framework available out there (Angular in particular).

thanks,

Wayne Chan

Post edited by Unknown User on
Tagged:

Answers