Mailchimp how to call mailchimp 3.0 API in javascript

后端 未结 1 1675
误落风尘
误落风尘 2020-12-21 05:14

I am trying to subscribe an email to a list on mailchimp, I followed the documentation first, made a request using \"Postman\" added what was needed and everything works jus

相关标签:
1条回答
  • 2020-12-21 05:43

    As charliefl noted, this is a CORS issue. MailChimp doesn't support CORS, mostly because it would require you passing your API credentials to the user of the webpage, allowing them to takeover your entire account.

    Your two options for MailChimp are to proxy your requests through a server or, for signing people up to your list, you can build a custom signup form that uses a much more restricted API. The caveat of this second method is that it forces all of your subscribes through MailChimp's double opt-in process.

    0 讨论(0)
提交回复
热议问题