How to make nextcloud inside ifame

I want to use nextcloud inside an iframe,it works in edg10,but in other webbrowser like firefox and google it doesn’t work. In google ,it shows “redirect too many”

Somebody can help me ?

This option is coded into NC for security reasons. You can try to remove this option manually:

However, it’s not sure if it still work like this. Perhaps you have too look into the code what has changed.

Now,I use nextcloud 11 , in firefox it works good , but in google it still shows

I don’t know how to solve…