Serve text/html from wp-json API via WPEngine, headers not being set properly
In case someone encounters this exact problem in the future: I found the error to be related to the external api not being properly configured to handle a request to a secure endpoint. Since my site on WPEngine is secure (https), IIS needs to be configured to handle TLS1.2, which is wasn’t (start here for … Read more