The French resort of Cannes has banned full-body, head-covering swimsuits from its beaches, citing security reasons — a measure some are decrying as a discriminatory anti-Muslim move that will only worsen religious tensions.

The ban on so-called "burkini" swimsuits, at the height of the French Riviera's vacation season, comes as France remains on edge after deadly attacks by Islamic extremists in nearby Nice and at a Catholic church in the country's northwest.

Inventor of the burkini Aheda Zanetti pictured at Australia's Bondi Beach in November 2008. (Peter Rae/Sydney Morning Herald/Fairfax Media/Getty)

Cannes Mayor David Lisnard issued an ordinance in late July forbidding beachwear that doesn't respect "good morals and secularism" and called the burkini "the uniform of extremist Islamism, not of the Muslim religion."

It notes that swimwear "manifesting religious affiliation in an ostentatious way, while France and its religious sites are currently the target of terrorist attacks, could create risks of trouble to public order."

Mecca Laalaa, 20, runs along North Cronulla Beach in Sydney, Australia, during her volunteer lifeguard training competency test in January 2007. (Tim Wimborne/Reuters)

The Cannes beach ban is just the latest of many French measures seen as singling out Islam, the country's second most popular religion, in the name of official secularism.

Last week, the mayor of a town outside Marseille banned a swimming day for women at a local park, citing a risk to public order because swimmers were required to cover up from chest to knee. The association Smile 13 organized the event for women, girls and boys, asking swimmers respect the Islamic notion of "awra," a reference to parts of the body to be hidden.

<a href="https://twitter.com/hashtag/burkini?src=hash">#burkini</a> banned? Wear a wetsuit. Same thing, different name. 😂 <a href="https://t.co/I7sLODa9q2">pic.twitter.com/I7sLODa9q2</a> —@Abbie1979

Banning the <a href="https://twitter.com/hashtag/burkini?src=hash">#burkini</a> is misogynistic – and Western feminists are turning a blind eye <a href="https://twitter.com/hashtag/Cannes?src=hash">#Cannes</a> <a href="https://t.co/faNFlWn4Ny">https://t.co/faNFlWn4Ny</a> —@yasserlouati

The mayor of a Corsican town has also banned the full-body burkini swimsuits after a clash between local residents and Muslim bathers of North African origin.

Mayor Ange-Pierre Vivoni said on France-Info radio Monday that the ban in his town of Sisco is aimed at calming religious tensions and protecting Muslims. At least four people were injured and three cars torched during a clash that reportedly started over the presence of women in burkinis, the Interior Ministry says.

<a href="https://twitter.com/GerardAraud">@GerardAraud</a> <a href="https://twitter.com/hashtag/France?src=hash">#France</a> must be full of dirty perverts who want women to be naked. <a href="https://twitter.com/hashtag/burkini?src=hash">#burkini</a> <a href="https://t.co/YQA3riXmtk">pic.twitter.com/YQA3riXmtk</a> —@SamMaloneUK

France isn't alone in banning the burkini. According to the International Business Times, a mayor in Germany also banned the swimming garment from a local pool earlier this year.

Incidents involving the Muslims on the beach and pools in France and around the world aren't anything new. A French Muslim was denied entry to a swimming pool for wearing an Islamic-style full-body swimsuit in 2009. Officials said the head-to-toe burkini was unhygienic and harmful to other bathers, but the woman complained of religious discrimination.

Anila Nakrawala talks to CBC Windsor's Lisa Xing about the need for modest swimwear, including the burkini, in Canada. 2:32 Sama Wareh walks along the sand dressed in swimwear designed for Muslim women Newport Beach, Calif., in February 2007. (Chris Carlson/Files/Associated Press) (Chris Carlson/Associated Press)

Lebanese Australians were also attacked on Sydney's Cronulla Beach when mobs attempted to "reclaim the beach" in 2005. The riots, the country's worst of modern times, sparked a series of retaliatory attacks in which churches, shops and cars were trashed and left Australians of Middle Eastern appearance fearful of going to the beach.

Recently, the burkini regained attention during the 2016 Rio Olympics when Egypt's women's volleyball team played against Germany wearing burkinis. The burkini has been marketed as the first two-piece Muslim swimwear for women.