USEPA / R9-WETTool

1 stars 0 forks source link

Application is hosted behind a proxy now and USE_X_FOREWARDED_HOST = True in settings #38

Open tbock opened 3 years ago

tbock commented 3 years ago

This is only a problem in the template since we are dynamically getting host from HTTP_HOST

I have manually changed to this for now let host = SITE_PROTOCOL + "{{ request.META.HTTP_X_FORWARDED_HOST }}";

There is likely a better way of accessing the host that will be correct

tbock commented 3 years ago

apparently it should be set to {{ request.get_host }}