Skip to main content
Best answer

AMP-Form rejecting Zapier Webhook response (CORS error)


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 ikbelkirasanBest answer by ikbelkirasan

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.

View original
Did this topic help you find an answer to your question?
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

ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • Answer
  • June 5, 2021

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.


william
Forum|alt.badge.img+6
  • Zapier Staff
  • 177 replies
  • July 14, 2021

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.