There is the following code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script> $.ajax({ url: "http://vm1.culture.ru/abramtsevo/catalog/ajax.php", data: { YEAR_SEARCH_LEFT: "-99", YEAR_SEARCH_RIGHT: "1999", TEGS: "Предметы быта" }, type: 'POST', crossDomain: true, success: function() { alert("Success"); }, }); </script>
How can you avoid the unfortunate error "No Access-Control-Allow-Origin"?
And the question is that there is no complete duplication: how does the https://cors-anywhere.herokuapp.com/ mechanism (if added before the link in the "url" so that it is " https://cors-anywhere.herokuapp.com/http : //vm1.culture.ru/abramtsevo/catalog/ajax.php ", everything works) does it all bypass?
The same project on github: https://github.com/Rob--W/cors-anywhere