Rest API in IIS returns HTML (Object Moved) on post
-
When I do a post (create order on WooCommerce) to the V2 rest api, I get:
<head><title>Document Moved</title></head>\n<body><h1>Object Moved</h1>This document may be found <a HREF=\"https://<domain>/wp-json/wc/v2/orders/21658\">here</a></body>{"id":21658,"parent_id":0,\number\":"21658","order_key":....
I saw the same issue here so I assume it is IIS related. I run on IIS on Plesk (let’s not have a discussion on why I should not run WordPress on IIS, I need it and it is officially supported).
For clarity, the new order created is part of the response, and the ID number is the number of the new order.
But the response should not contain HTML, and there is no reason to have that message in the first place.
Is this a bug, or is there something that I can change?
- The topic ‘Rest API in IIS returns HTML (Object Moved) on post’ is closed to new replies.