Checking if the current path is secure to generate https urls for
resources