How to set ajax header with amp-form

226 Views Asked by At

There are some codes in my old code.

 $.ajaxSetup({headers: {'X-CSRF-TOKEN':$('meta[name="csrf-token"]').attr('content')}});

How can I do this using amp-form?

0

There are 0 best solutions below