commit | cdbf38c235a5f9dd9ba4e8c0245bb882b6e3185c | [log] [tgz] |
---|---|---|
author | Vasyl Saienko <vsaienko@mirantis.com> | Thu May 10 12:07:19 2018 +0300 |
committer | Vasyl Saienko <vsaienko@mirantis.com> | Thu May 10 12:08:08 2018 +0300 |
tree | 6c70d70c3641915e840362a72005cc9b8da69a1d | |
parent | f858292abb3cad6046010a81acdfdd21808c5cef [diff] |
Do not add 80,443 ports to dashboard url When CSRF protection is enabled Refferer and Host header should match. Common browsers doesn't add default ports like 80 and 443 to the headers. Use the same logic here to make sure test passed when CSRF protection is enabled and we using default port numbers. More info may be found here: * https://code.djangoproject.com/ticket/26037 * https://stackoverflow.com/questions/27533011/django-csrf-error-casused-by-nginx-x-forwarded-host Change-Id: I55503547c0a66fc8a53dd88db8ef242eeb863fa9 Related-Prod: PROD-19831