CORS error when doing REST2 call

I’m trying to use REST2 API from external software made with axios.
So when I try to make request like:

axios.get(BASE_URL + ‘/REST/2.0/queues/all’, {
headers: {
‘Authorization’: ‘token 1-13963-5f505c7ff2f9145b5cdcc8559db4c9c’,
‘Content-Type’: ‘application/json’,
.then(result => console.log(result))

I got CORS error. So I have added

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"

in my apache rt.conf file. But this does not work.

Could you help me with any advice?

Need to remove “BASE_URL +” which was host ip