Spray foam insulation isn’t fire resistant on its own, but it can be treated with a range of fire-resistant coatings. There are a few different choices and a professional will be able to decide which is best for your particular situation.