Open tung2744 opened 1 year ago
Affecting:
After discussion, we will handle as follow:
When using database config source, as the host will be used to map to app id, it must be a valid host if he successfully call an api. So redirect is not needed.
When using file system config source, we should only redirect if "trust proxy" config is false.
Some http clients, such as https://api.flutter.dev/flutter/dart-io/HttpClientRequest/followRedirects.html Will not follow redirects on POST requests. Therefore returning 308 in POST apis may cause problems. If it is not necessary, lets remove it.