Updated to allow non-ssl connection to webapp