Broken Webmail Styling due to missing XSRF tokens?

Jan 31, 2015
8
0
1
cPanel Access Level
Root Administrator
Our webmail page has no (or at least very broken) styling. See attachment.

Looking at the inspector, it appears assets like CSS and JS are not being served properly. Instead, for instance this url, oursite.tld:2096/cPanel_magic_revision_0/webmail/webs/mail_clients/mail_clients.css is shown (no cpsess?) and inspector obviously says "Resource interpreted as Stylesheet but transferred with MIME type text/html:".

The response for that link is an HTML page, with the following message:
Code:
[INDENT][SIZE=5][B]HTTP error 401[/B][/SIZE]
[SIZE=4][B]Invalid Security Token[/B][/SIZE]
The requested URL does not contain your session’s correct security token.

You may have reached this error by copying and pasting a URL from a different cPanel, WHM, or Webmail session into your browser’s address bar. To resolve this situation, please take one of the following steps:

[LIST]
[*]Go back one page and reload the URL, making sure that the /cpsess … / section of the URL remains the same.
[*]Re-enter your account’s password below. This will assign your session a new security token. This new token will prevent you from using other pages of this application that may be open in other tabs.
[/LIST]
[SIZE=4][B]Request information[/B][/SIZE]
Requested page: cPanel_magic_revision_0/webmail/webs/mail_clients/mail_clients.css
[/INDENT]
How can I fix this? I thought it might be cloudflare related but we're not using cloudflare on there.
 

Attachments

Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello,

Could you verify if any custom themes or styles are assigned to this account?

Thank you.
 
Jan 31, 2015
8
0
1
cPanel Access Level
Root Administrator
For anyone else reading this, it was a custom cpanel theme which, for all intents and purposes, was just a copy of the original x3 theme, but was out of date. cPanel support were great and sorted the issue through the ticket system. Many thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.