diff options
-rw-r--r-- | packages/website/ts/@next/components/newsletter_form.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/website/ts/@next/components/newsletter_form.tsx b/packages/website/ts/@next/components/newsletter_form.tsx index 3277f7f2e..455e7b54c 100644 --- a/packages/website/ts/@next/components/newsletter_form.tsx +++ b/packages/website/ts/@next/components/newsletter_form.tsx @@ -58,16 +58,18 @@ export class NewsletterForm extends React.Component { e.preventDefault(); const email = this.emailInput.current.value; + const referrer = "https://0xproject.com/"; this.setState({ isSubmitted: true }); try { - const response = await fetch('/email', { + const response = await fetch('https://website-api.0xproject.com/newsletter_subscriber/substack', { method: 'post', + mode: 'cors', headers: { 'content-type': 'application/json; charset=utf-8', }, - body: JSON.stringify({ email }), + body: JSON.stringify({ email, referrer }), }); const json = await response.json(); |