Homeowners/Landlord Insurance

How does everyone go about getting a homeowner’s insurance policy on a property that you are rehabbing/flipping? Places are telling me that they won’t insure it b/c it needs work and because I am going to resell it right away. Guess that makes sense for them, but my loan requires insurance. Any advice?