Best answer

AMP-Form rejecting Zapier Webhook response (CORS error)

  • 1 June 2021
  • 3 replies

We have an AMP form on one of our pages that posts to a Zapier webhook endpoint. The data is being sent to Zapier just fine but the response from Zapier has an improperly formatted header that causes the AMP-form to throw an error. This, in turn, stops the submit button from being disabled and is causing some users to inadvertently submit multiple identical forms.

Does anyone out there have experience using Zapier webhooks with AMP-forms? Any help would be greatly appreciated.


Response header from Zapier [ nice plug ;) ]
Error messages in chrome developer console



Best answer by ikbelkirasan 5 June 2021, 15:27

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +12

Hi @Morgan & Morgan Developers - This issue has something to do with your fetch call. It’s being called with credentials: ‘include’. Try removing it from your fetch call and see if that works.

Userlevel 3
Badge +6

Hey @Morgan & Morgan Developers, I hope you’re doing well, I just wanted to check in here!

Were you able to get this working with the information shared by Ikbel, or can we still help out here?

Hey @william @ikbelkirasan, thank you for checking in! Unfortunately AMP forms do not support configurable credentials, so removing `credentials: include` doesn’t seem to be an option.