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
1 file changed