Thank you @dknutsen for your valuable response. I found a solution to the error (No access-control-allow-origin ) , first thing if we want to make any rest call through our controller we make a request through the proxy.
so first start ember server with proxy
$ ember s --proxy https://www.abc.com/api
after that we make our rest call with only our respected method, not whole URL
Ember.$.ajax( {
method : 'GET',
url : '/friends',
}).then((response) =>{
}
so in URL no need that domain name etc, directly calls our method that’s enough .
in this way, I solve the issue(No access-control-allow-origin).
cheers Happy EMBERING.