Thailand on Tuesday said it would allow undocumented migrant workers from Cambodia, Laos and Myanmar to work in the country legally for about two years to curb the spread of COVID-19.

Migrants have to sign up online and be registered by an employer before mid-September in order to receive a work permit until February 2023, according to a resolution by the Cabinet.

They will first have to undergo health checks at a cost of about 7,200 baht ($240), a Thai government spokeswoman said.