You cannot make any authenticated calls from the frontend of your application. That would expose your API key to anyone who wanted it. You can submit to a form that's already been created but you cannot create a form from your application.
How to create hubspot form using AJAX post call (without being blocked by CORS)?
Ah, **bleep**. Thought it was going to be an easily-overlooked and, importantly, an easy to fix mistake haha. If it works in Postman I guess there's nothing you need to add in the headers?
What does your JSON request body data look like?
I also think we should ask @zwolfson if he has any insights at this point.
How to create hubspot form using AJAX post call (without being blocked by CORS)?
Sorry for the delay on this, I was scratching my head on it for a while. Looking at your axios call above (if it accurately represents your real code) it seems that there's an extraneous quote after {myApiKey} and before the final backtick ( ` ).