Nextcloud in Iframe

I’ve tried putting nextcloud in an iframe but it keeps redirecting, any clues would be nice

I’ve tried following the guide from Nextcloud in Iframe doesn’t work and while the page now loads, its stuck in a 302 loop ad infinitum

A quick example can be found at

Thanks in advance for any help/advice given

Same here.