Flowable UI redirecting to login page again and again when using inside iFrame

I’m trying to integrate flowable UI inside an angular application using iFrame. Earlier I was not able to integrate due to X-Frame-Options set to same-origin, however I disabled that header.
Now the flowable login UI is loading inside iFrame but when I tried login with admin as user and password as test, then it is not working. Even after successful login, I’m getting redirected to login screen again. Also when I’m opening flowable UI directly on browser then login is working but not working when used inside an iFrame.

How can I make flowable completely working inside iFrame.

(I’m using 6.6.0 version)