remove localhost dependencies in http_security test

Remove localhost assumptions to make sure the http_security test works when run on an actual cluster under rtcloud.