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



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 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?