My application is hosted on AWS Elastic Beanstalk. I have some java scripts consuming the Rest APIs. When I try to call them through a custom domain, I get this error: