authenticationChallenge embedded framing issues

I try to use scripts to do the user authentication when action triggered by user using "embedded" parameter on framing. It shows refuse to connect by idp. But it was worked with "new" parameter. Any work around to avoid open new browser tab? Thank you.

system.perspective.authenticationChallenge(idp = "keycloak", timeout = 3, forceAuth = 'True', payload = {"isAction":"True","Value":self.getSibling("ToggleSwitch").props.selected}, framing = "embedded")

Whether a given site will work inside an iframe is up to that website; there's nothing you can do about it if you don't own the website in question.

I am the owner of the website, any settings to change? Firewall or anti-virus? Figure shows using "new" or "self" parameter.

You need to return a content security policy or x-frame-options header.