When Disney announced the leads for its live-action remake of 1992's animated classic "Aladdin," many fans were just relieved the cast wasn't white.

But criticism for the choices quickly popped up on social media, particularly with regards to Naomi Scott, who is slated to play Princess Jasmine.

So excited to be a part of this adventure! This is gonna be fun :) https://t.co/fFpkkEg2kR — Naomi Scott (@NaomiScott) July 15, 2017

Scott is biracial and of mixed British and Gujarati Indian descent, and many see her casting as Disney reinforcing the idea that South Asian and Middle Eastern people are interchangeable.

i love naomi scott but i don't love the "brown ppl are interchangeable" idea that hollywood believes in so it's a no from me lmao — T'CHALLA 🍑🍯✨ (@dirzacksnyder) July 15, 2017

naomi scott should've been batgirl so jasmine could be played by a middle eastern woman im so TIRED of hollywood not knowing how to cast poc pic.twitter.com/EDAfpw9Owb — gabi 🍒 (@harleivy) July 15, 2017

Of course, "Aladdin" is set in the fictional kingdom of Agrabah, but the film states it is near the Jordan River, and opens with a song called "Arabian Nights." Ron Clements and John Musker, directors of the original film, told E! News in 2015 that the movie was originally going to be set in Baghdad, Iraq, but was moved to a fictional city because of the first Gulf War.

"Roy Disney said, 'This can't be in Baghdad.' So, I took letters and did a jumbled anagram and came up with Agrabah," Musker said.

The names Aladdin and Jasmine both originate in the Middle East.

The names Aladdin and Jasmine also both originate in the Middle East, with Aladdin deriving from Arabic and Jasmine deriving from Persian.

So with all the crew confirmations and many of the film's visual clues, Agrabah is generally accepted to be somewhere in the Middle East.

Mario Anzuoni / Reuters Naomi Scott at the premiere of "Power Rangers" in Los Angeles, California U.S., March 22, 2017.