I try to my coinex account but get this error: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response. Here is my code:
<html>
<body>
</body>
<script>
var url='https://api.coinex.com/v1/balance/info';
var keys={
'accid':'****',
'secid':'*****'
};
var mergedurl=url +'?access_id='+keys.accid + '?tonce='+Date.now();
const xhr=new XMLHttpRequest();
xhr.onload = function(){
var result=JSON.parse(this.responseText);
console.log(result);
}
xhr.open('GET',mergedurl,true);
xhr.setRequestHeader('authorization',keys.accid);
xhr.send();
</script>
</html>