[GH-ISSUE #213] Login not possible with Cepht in iframe #177

Closed
opened 2026-02-25 21:34:21 +03:00 by kerem · 5 comments
Owner

Originally created by @Yamakasi on GitHub (Jul 22, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/213

Originally assigned to: @jasonmunro on GitHub.

When Cepht is loaded into an iframe, even within the same domain like:

webmail.domain.tld <- cepht install
webmail.domain.tld/testdir/index.php <- iframe which loads the above install

The auth against the IMAP server goes well but you get an error like "The read operation failed" or something like the same on you IMAP server and you will be thrown back to the login page.

How to fix ?

Originally created by @Yamakasi on GitHub (Jul 22, 2017). Original GitHub issue: https://github.com/cypht-org/cypht/issues/213 Originally assigned to: @jasonmunro on GitHub. When Cepht is loaded into an iframe, even within the same domain like: webmail.domain.tld <- cepht install webmail.domain.tld/testdir/index.php <- iframe which loads the above install The auth against the IMAP server goes well but you get an error like "The read operation failed" or something like the same on you IMAP server and you will be thrown back to the login page. How to fix ?
kerem closed this issue 2026-02-25 21:34:21 +03:00
Author
Owner

@jasonmunro commented on GitHub (Jul 23, 2017):

works fine for me, I just tested an iframe login locally and it worked without issue. Does your direct login without the iframe work?

<!-- gh-comment-id:317268911 --> @jasonmunro commented on GitHub (Jul 23, 2017): works fine for me, I just tested an iframe login locally and it worked without issue. Does your direct login without the iframe work?
Author
Owner

@Yamakasi commented on GitHub (Jul 23, 2017):

In a simple iframe it works

webmail.foo.bar/ <- install
webmail.foo.bar/dir/index.php <- iframe

but not like this:

My router (MVC) calls it like site.com/foobar(/maybe/more) where i load an iframe in a view to Cypht but there we have an issue, I also tried to use a subdomain to load it from, but we will have a cookie issue that we can set in Cepht, no solution.

My install of Cepht under the same domain is outside of my public dir...

<!-- gh-comment-id:317288406 --> @Yamakasi commented on GitHub (Jul 23, 2017): In a simple iframe it works webmail.foo.bar/ <- install webmail.foo.bar/dir/index.php <- iframe but not like this: My router (MVC) calls it like site.com/foobar(/maybe/more) where i load an iframe in a view to Cypht but there we have an issue, I also tried to use a subdomain to load it from, but we will have a cookie issue that we can set in Cepht, no solution. My install of Cepht under the same domain is outside of my public dir...
Author
Owner

@jasonmunro commented on GitHub (Jul 27, 2017):

Not sure what to say about this. We know it works in an iframe, and it should not matter how that iframe is served (your router) - so something else is causing the problems you are seeing. can you explain in more detail the exact error conditions and log messages you are seeing? Also, I know it's probably and autocorrect thing, but it's Cypht, not Cepht :)

<!-- gh-comment-id:318433223 --> @jasonmunro commented on GitHub (Jul 27, 2017): Not sure what to say about this. We know it works in an iframe, and it should not matter how that iframe is served (your router) - so something else is causing the problems you are seeing. can you explain in more detail the exact error conditions and log messages you are seeing? Also, I know it's probably and autocorrect thing, but it's Cypht, not Cepht :)
Author
Owner

@Yamakasi commented on GitHub (Jul 27, 2017):

I will restest this again and report back... yes the typo, I'm ill and typing is painfull ;)

<!-- gh-comment-id:318472319 --> @Yamakasi commented on GitHub (Jul 27, 2017): I will restest this again and report back... yes the typo, I'm ill and typing is painfull ;)
Author
Owner

@Yamakasi commented on GitHub (Aug 8, 2017):

This can be closed and is explained in the API login section.

<!-- gh-comment-id:320817023 --> @Yamakasi commented on GitHub (Aug 8, 2017): This can be closed and is explained in the API login section.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#177
No description provided.