Form API don't save web analytics history on my hubspot

contacts

#1

Hi there!

I’m trying to use a form customized and I didn’t have sucessed.

Because if i use the submit data form, hubSpot can’t save datas from my web site. And If i use the script that HubSpot provides me when I create a form it works fine.

Using the submit data form gives me emptiy labels everytime i check My Web Analitics History and when I full fill my form i receive from my console’s broswer that message:

‘XMLHttpRequest cannot load https://forms.hubspot.com/uploads/form/v2/2206199/5142b8fa-7b0f-4d0b-9de1-f2a3ac5d44a5. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:9000’ is therefore not allowed access.’

How can I fix it?