Hi Uday ,
I'm not professional on this subject but I guess this error is a security measurement . The links below may be helpful.
https://docs.mendix.com/developerportal/deploy/access-restrictions/
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#who_should_read_this_article
Regards,
Ridvan