Im sending a valid JSON string in a request in an .asp page and I´m getting this error.

[Error] Failed to load resource: Preflight response is not successful (checkout, line 0)
[Error] XMLHttpRequest cannot load https://test.checkout.dibspayment.eu/api/v1/theming/checkout. Preflight response is not successful

And I´m using this to send it.

Set objXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
    objXmlHttp.Open "POST", url, False
    objXmlHttp.SetRequestHeader "Content-Type", "application/json"
    objXmlHttp.SetRequestHeader "User-Agent", "ASP/3.0"
    objXmlHttp.SetRequestHeader "Authorization", "xxxxxx"
    objXmlHttp.Send (data)

So is my code wrong or is the problem at the receiving end to where I send it?

Any input appreciated, thanks.

0 Answers