Way to enable CORS on the On-Premises?

We want to call API from one of our websites but we get a cors error... Is their a way to enable CORS url on the on-prem version?