A cruise ship that was turned away from Jamaica and the Cayman Islands on Tuesday received permission to dock in Mexico on Wednesday.

The MSC Meraviglia from MSC Cruises, was turned away from Jamaica and the Cayman Islands after a crew member tested positive for the flu on Tuesday. The ship, with more than 4,500 passengers and 1,600 crew members, is scheduled to arrive in Cozumel Wednesday evening.

“MSC Cruises is pleased to confirm that it has just received formal and final authorization from the local health authorities in the State of Quintana Roo, Mexico to get to Cozumel,” a spokeswoman for MSC said on Wednesday.

It seemed that the ship was falling into a pattern set by Holland America’s MS Westerdam, which earlier this month was turned away from five countries because authorities feared that people onboard had Covid-19. After the Westerdam docked in Sihanoukville, Cambodia, one passenger tested positive for the illness. The C.D.C. later said that the woman’s diagnosis was a false positive.