Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel webmail Embedded in an iFrame

Discussion in 'cPanel Developers' started by Matt E, Oct 15, 2013.

  1. Matt E

    Matt E Registered

    Joined:
    Oct 15, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have a website which has a database that stores user email login credentials. I would like to embed the webmail for each user's email account into an iFrame. I am using HTTP authentication, so I would like something like this:

    <iframe style="width:100%;height:600px;" src="https://user:password@example.com:2096/3rdparty/roundcube/?_task=mail&_refresh=1&_mbox=INBOX"></iframe>

    cPanel responds to this by providing a 401 invalid login token. If you tell it to go to / instead of roundcube, it will work fine, but I'd like to to show roundcube immediately.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,971
    Likes Received:
    1,824
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice