Static GitHub Issues

[3033] Cannot find a way to create endpoints ?

prev: Core nuxt class should not have side effects on creation
next: Weird param

Currently creating an application which will have a web form on it. This then needs to be submitted into Salesforce Pardot. I would like to do this via AJAX request rather than a normal form submit.

However there is CORS issues with doing this ajax request on the front end.

I cannot seem to figure out , searching through every single nuxt documentation page, where to simply put some backend node.js code which simply runs on the backend rather than the client.

From my Q above you can gather i need to send the formData to some backend code on the same nuxt server and then do a server axios request to get the data into pardot.

Any ideas or anything i am missing ?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2628">#c2628</a>)</em></sub></div>