Solved
CORS error when calling API
Hi,
I am trying to call Marketo rest API using the javascript on the CMS web page but I am getting CORS error. Is there any way to fix this?
Thanks
Harish G
Hi,
I am trying to call Marketo rest API using the javascript on the CMS web page but I am getting CORS error. Is there any way to fix this?
Thanks
Harish G
There's no reason to use the browser to test, since the browser won't be the deployment platform. Use cURL, Postman, etc.
The reason for the CORS error should be self-evident: it isn't a browser API, so the Access-Control headers are not present.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.