amp-htmlamp-form

How to set​Request​Header on AMP-FORM?


How can I add an 'x-access-token' header to an AMP-FORM xhr request?

There's a java API that I'm going to send some requests to, but this API needs that some params be set via request headers.


Solution

  • That's currently not possible. However, you could file a feature request as this might be a common use case.