I am using an HTTP POST to add orders to Shopify using the API. However, although this seems to work OK on a server with an older OS, the server I am using (Windows Server 2016 Standard) does not behave correctly. Instead of POSTing the JSON data it is redirecting to the admin area of the shop. Any ideas from anyone?
It sounds like you may be including header cookies in your request, which is causing Shopify to block the request and redirect you to the admin.
What tool are you using to make the API call? I would double check to make sure you have all header cookies removed using a tool such as Postman, and then trying to make the API call again.
Hi. Thanks so much for replying. It seems unlikely that I am setting cookies, but I am not that familiar with this object. This is the code I am using that is redirecting instead of POSTing, where the variable jsondata contains the JSON that is working with this code on older OS servers, and indeed did work with this code on this server about 3 months ago, so I am thinking it is a result of some Windows Update that has happened recently?
|2 hours ago|
|6 hours ago|
|7 hours ago|