Hello! There were several problems when sending a cross-domain request. They are resolved. And in anticipation of the expected result, a new one - the POST array came empty. I ask the public for help. My code
function sendData() { $.ajax({ url: 'https://some_domen.com/my_file.php', type: "POST", data: { 'exchange_id': exchange_id, 'description': description, 'source_link': wl, 'job_title': job_title, 'budget': budget, }, success: function (data) { alert(data); }, error: function () { alert('Error!'); } }); } On the server code:
print_r($_POST); exit; The answer comes
array ( )