In the method described, one or more halogen-free phosphorus compounds are incorporated in the precondensed resins before the final resin-curing stage. During final curing, the phosphorus compounds are bound by covalent bonds into the resin structure and/or are trapped in the resin structure as such or in the form of aggregates or condensates.