Jeff Goldblum became a topic of discussion on social media for his questions about Islam's treatment of the LGBTQ community and women during Friday's episode of "RuPaul’s Drag Race."

Goldblum's questions came after contestant Jackie Cox walked the runway in a patriotic red and white striped kaftan and a blue hijab outlined with 50 stars for the show's "Stars & Stripes" theme.

"You can be Middle-Eastern, you can be Muslim and you can still be American," Cox, who is of Iranian heritage, said in a voiceover.

The "Jurassic World 3" star, who served as a guest judge during the episode, asked Cox if she was religious.

"I'm not, and, to be honest, this outfit really represents the importance that visibility for people of religious minorities need to have in this country," Cox replied.

Goldblum continued asking Cox about her religion's stance on the LGBTQ community and women.

"Is there something in that religion that is anti-homosexuality and anti-woman? Does that complicate the issue?" the actor asked. "I'm just raising it and thinking out loud and maybe being stupid."

RuPaul quickly chimed in noting how drag has always "shaken the tree" and if there was ever a place to make that sort of statement, "this is the stage to do it."

Cox admitted it's a "complex issue" and that she has her own "misgivings" about how the LGBTQ community is treated in the Middle East.

"What is so important to me is that if you just happen to be different, then live that truth," Cox said.

She continued noting how the Muslim ban affected her family and "destroyed" her faith in the United States.

"I had to show America that you can be LGBT and from the Middle East and there's going to be complicated (expletive) around that and that's OK," Cox said. "But I'm here and I deserve to be in America just as much as anyone else."

What you don't know:about America's Islamic heritage

People on social media called out Goldblumfor his "dangerous" comments.

"That statement by jeff goldblum that islam as a religion is anti woman and anti lgbt was so incredibly uneducated and dangerous and hurtful," tweeted @femmesnowflake.

Others said that Goldblum's questions perpetuated the idea that Muslims and Arabs are only "allowed to be exemplified by the worst," whereas "Christianity, is forever allowed to be exemplified by the best of what it represents."

"Jeff Goldblum felt the need to say "but isn't Islam anti-gay and anti-woman" to Jackie because she was wearing a stars-and-stripes hijab, as if America hasn't been anti-gay and anti-woman from the outset, or killed and displaced millions of Muslims, including women and queers...," tweeted Omar Sakjr.

"Jeff Goldblum's question about Islam to the performer wearing hijab in #DragRace always makes me wonder what folks say about us Muslims behind our backs," Wajahat Ali tweeted. "This was him holding back & trying to be sensitive. He's well-traveled, informed & he's from "liberal Hollywood." I wonder..."

"Yikes at Jeff Goldblum saying being Muslim = being Anti women," added @tender_oni.

Others pointed out that if a drag queen was of any other religion, she wouldn't have been asked this question.

"That question wouldn’t have happened to any other queen, of any other race. they are exploiting her on the stage in such a gross way by making her defend an entire religion she already said she doesn’t practice????" tweeted @nicolahearts.

Some people came to Goldblum's defense.

"Why Jeff Goldblum has received backlash from this is beyond me. He asked a perfectly acceptable question to Jackie regarding her attire and the symbolisation of why she decided to wear it on the run way. He was both brave and valid to ask the question!" tweeted @Ian_banham.

"Jeff Goldblum asked a QUESTION. He did not "go on television to say Muslims are ‘anti-homosexuality and anti-woman’," wrote Walp0le.

"Wait, wait, wait! Is that what people was calling islamophobic and xenophobic?" tweeted @ChoklateHulk.

USA TODAY has reached out to reps for Jeff Goldblum and "RuPaul's Drag Race."

More:Shangela, Bob the Drag Queen and Eureka bring drag to small-town America in HBO’s ‘We’re Here’