I am trying to get some response from wizzair API (no official docs, I came across with XHR in dev tools).
So far I established that there is
url https://be.wizzair.com/7.10.1/Api/search/search
and an object payload that is passed through POST method to fetch the data back.
How could I pass the object to URL with POST?
This is my try that gives 404.
$.ajax({
method: "POST",
type: "json",
url: url+payload,
success: function (data) {
console.log(data);
}
,
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
},
});
The other problem is
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404.