International audienceContext. The formation of protostellar discs is severely hampered by magnetic braking, as long as magnetic fields remain frozen in the gas. The latter condition depends on the levels of ionisation that characterise the innermost regions of a collapsing cloud.Aims. The chemistry of dense cloud cores and, in particular, the ionisation fraction is largely controlled by cosmic rays. The aim of this paper is to evaluate whether the attenuation of the flux of cosmic rays expected in the regions around a forming protostar is sufficient to decouple the field from the gas, thereby influencing the formation of centrifugally supported disc.Methods. We adopted the method developed in a former study to compute the attenuation of th...