netlify site name: cheerful-taffy-0e7fae
DNS: www.trolleymate.com.au
Accessing From: Android (Flutter)
I have an api endpoint that I have build to accept POST requests with optional gzip header…
'Content-Encoding': 'gzip',
'Content-Type': 'application/json',
this works locally but upon deployment to Netlify, the POST requests are ignored and do not respond.
do I need to do something like this?
Hello,
I’m trying to deploy a unity app that is .gzip but I’m facing an issue when deploying the app : https://melodious-biscotti-444f12.netlify.app/
Unable to parse XXX.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header “Content-Encoding: gzip” present. Check browser Console and Devtools Network tab to debug.
Nothing strange in deployment logs.
This is the first time I’m deploying this kin…
would a redirect help?
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/api/:splat"
status = 200
force = true
headers = {
"Content-Encoding": "*"
}
Can you share a minimal reproduction of the issue?
I have subsequently figured out that a gzipped http POST is almost always a bad idea on account of making your webserver easily attackable with a ‘zip bomb’ attack. so I changed my approach to no longer need to do this.