Embed Nextcloud dashbaord on an external website

Hello everybody,

As said in the title would like to integrate the nextcloud dashboard into an external website
For now what I have done is to integrate it with an iframe block, it works the login page is displayed but the problem is that we cannot connect it. When you enter your username and password, it doesn’t matter whether it’s true or false, the page will load for a short time and empty the form like a simple refresh, you get no error message that could help solve the problem.

Waiting for answers that could help me, thank you in advance.

Nextcloud does not like this, but is something to do with the same-origin policy

Yeah i resolved the problem with same-origin policy, I can embed nextcloud into my website (I can show the login page and public repertory) but if an user want to login into the embedded nextcloud it doesnt do anything as if requests were blocked.