Using the proper method to disable localhost check