<script>
$.ajax({
url: "barcode.php",
type: "get",
data: {
data: 'ABC-abc-1239',
code: 'Code128',
},
success: function(response) {
console.log(response)
$('#barcode').html(response);
},
error: function(xhr) {
console.log('Ошибка запроса')
}
});
</script>
Access to fetch at 'https://p2p.binance.com/bapi/c2c/v2/friendly/c2c/a...' from origin 'https://site.ru' has been blocked by CORS policy:
POST https://p2p.binance.com/bapi/c2c/v2/friendly/c2c/a... net::ERR_ABORTED 400