In my use case, API Gateway serves as an HTTP proxy, using default settings following official tutorial.
It's tested working in test console or via curl. But if I access the link in browser or make an AJAX call, I'll get ERR_CONTENT_DECODING_FAILED
.
It seems that API Gateway corrupt the content. Related issue.
Is there a way to forbid API Gateway changing my content? I set Content Handling
to passthrough
, but clearly it's changing my content.
Add a static integration request header
Accept-Encoding
with value'identity'
, so that AWS won't tamper your request.