Virus knows no national borders. Everyone worldwide must take responsibility in fighting the epidemic. Since the outbreak of COVID-19, the Chinese government has attached great importance to the safety and health of all people in China, including foreigners, and has protected their legitimate rights and interests according to the law. Presently, as the positive trend in preventing and controlling the epidemic in China has been constantly consolidated and expanded, the National Immigration Administration has been collecting relevant legal provisions relating to the rights and obligations of foreigners in China in epidemic prevention and control. All foreigners in China shall strictly abide by the laws and regulations and actively cooperate when measures are taken to prevent the risks caused by the epidemic, for the good of your own health and safety, as well as that of others.
https://www.nia.gov.cn/n741440/n741542/c1277423/content.html