Is it illegal that a factory does not provide a mask to people who work with strong glue?

Yes. Osha requirements require material safety sheets as well as protective equipment for inhalation , gloves etc. Proper venting is also required.