I can’t say for sure, but if you are getting a behavior change in the way the content is being
served from your endpoint. Then I would guess it has something to do with you adding those new response headers.
Perhaps there was some header being added by default, that is no longer sent because you customized it?
If the content was previously served as JSON, but now comes across as base-64 encoded text. Perhaps you need to explicitly set the
Content-Type
header? in the response?
There are many moving parts that could also be the culprit here. But hopefully that helps.