I have a component which is loading marketo form and on submission, calling onSuccess handler, from there to JS and making AJAX call to save form values to AEM.
There are two problems
1. 404 on csrf token - To solve this I have added "granite.csrf.standalone" to my component. Now I can see token in author and publisher on sandbox but does not show in published page.
2. while testing component in author, there is token but after submission it shows NS_BINDING_ABORTED.