DFE-Digital / polis-whitelabel

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
3 stars 0 forks source link

Network code in pol.is application causing problems behind proxies #96

Open brendanarnold opened 7 months ago

brendanarnold commented 7 months ago

Application has a lot of network redirects which use the HOST and other headers from requests. These don't reflect the public host when behind proxies and in some hosting environments.

Remove the unecessary redirects e.g. http to https where it is more appropriate to handle in infrastructure, use a single environment variable to properly configure user redirects.