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))
.catch()
I got CORS error. So I have added
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
in my apache rt.conf file. But this does not work.
Could you help me with any advice?