AWS API Gateway ERR_CONTENT_DECODING_FAILED in bro

2020-02-15 08:41发布

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.

1条回答
我只想做你的唯一
2楼-- · 2020-02-15 09:24

Add a static integration request header Accept-Encoding with value 'identity', so that AWS won't tamper your request.

查看更多
登录 后发表回答