Cross-Origin problem

I’ve set up my page with the api, everything works nicely locally, but when I’ve uploaded my script to the server it stops working. console error is “Cross-Origin Request Blocked”.
how can i get rid of this error??

We’d be happy to allow access to your domain for CORS. Use of our API on your website does require attribution. See here: Plans to Grow With You Once you’ve done this email with your domain and API key and we’ll get this setup ASAP!