Cart/add.js not working with custom domain

Hi all,

Cart/add.js is not working with the custom domain. As usual, CORS error. what to do?

Thanks in advance.