Skip to content

Commit 871be7d

Browse files
committed
chore: further workaround zapier CORS issue
1 parent 00b5bcd commit 871be7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/shared/contact-form/contact-form.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ const ContactForm = ({
132132
body: JSON.stringify({
133133
text: `${formId} by ${firstname} ${lastname} (${email}) from ${company}\n\n${message}`,
134134
}),
135-
}),
135+
// Workaround for the CORS issue.
136+
}).then(() => new Response('', { status: 200 })),
136137
),
137138
]);
138139

0 commit comments

Comments
 (0)