grant network permission to app