We describe a fiber-based resonant microscanner, designed for the realisation of polarimetric images of biological tissues through an endoscope for medical diagnosis. The remote technique of polarimetric characterisation through an optical fiber that we implement requires the use of a Bragg grating photowritten at the output end of the fiber. The intrinsic birefringence of the grating is measured and its detrimental consequences on the measured values are discussed. Solutions able to overcome this problem are proposed, paving the way for the fabrication of the very first polarimetric endomicroscope.