RoundCube Redirect Issue with IE11 Win7
I opened this ticket originally with RoundCube but they don't think it's their issue so I'm going to the next link in the chain. I'll copy and paste what I put in the github.com/roundcube/roundcubemail/issues/5883 RoundCube ticket below:
I'm experiencing an issue on my WHM server running cPanel ( CENTOS 7.3 x86_64 kvm " host cPanel & WHM 64.0 (build 36) ) and RoundCube version 1.2.4. Using RoundCube with IE11 and Windows 7, occasionally CSS or JS files won't load properly. The HTML document will request the main styles.css or jQuery.js file with a correct content type, but the server SOMETIMES responds with a 308 redirect with a content type of text/html. The redirected document loads the correct file, but due to this redirect, IE11 claims a type mis-match and refuses to load the file. The server has 'X-Content-Type-Options' set to 'nosniff', which may be a factor in this as well but that is there for security reasons. I don't see this happening on Chrome or Firefox or even IE11 on Windows 10. Attached is the IE11 version of a HAR file detailing the issue, rename it back to XML.
From a clients perspective, when this happens, they sometimes get a white screen, no CSS loading, or instead of the RoundCube interface, they see the raw JSON response from the server and that's it. ANy help diagnosing this issue would be appreciated.
Sample redirect
--------------------------------- I couldn't add the captured network traffic files since 7mb is too large to attach.
Files jquery-ui-1.10.4.custom.css, jquery.min.js and ui.min.js fail to load
SEC7113: CSS was ignored due to mime type mismatch
File: jquery-ui-1.10.4.custom.css
SEC7112: Script from http://webmail.example.com/cpsess1638020311/3rdparty/roundcube/skins/larry/ui.min.js?s=1489164033 was blocked due to mime type mismatch
File: index.php
SEC7112: Script from http://webmail.example.com/cpsess1638020311/3rdparty/roundcube/skins/larry/jquery.min.js?s=1489164033 was blocked due to mime type mismatch
File: index.php
--------------------------------- I couldn't add the captured network traffic files since 7mb is too large to attach.
-
Hello, The server has 'X-Content-Type-Options' set to 'nosniff', which may be a factor in this as well but that is there for security reasons.
Is that configured for Apache, or for cpsrvd? Note that we don't yet support the use of the X-Content-Type-Options header in cpsrvd. There's a feature request open for this at: Add X-Frame-Options Cpanel Ports This might also relate to the issue discussed on the following StackOverflow thread (when CSS is configured to open with a particular program in Windows): Internet Explorer "CSS was ignored due to mime type mismatch" on local files (no server) Could you verify if the solution on that URL helps? Also, can you confirm if the domain name you are reproducing the issue with uses a CDN (e.g. CloudFlare)? Thank you.0 -
I have the header applied at the Apache include file level. I'm not sure what cpsrvd is so I doubt it is set there. As for the solution offered in that link, it refers to forcing the mime-type via a RegEdit. That MAY work, but that won't help me address any client issues. That will only fix it for myself. To answer your question, the site is not using a CDN. Also we do not use a CDN for RoundCube in general. Also note that while there was a CSS issue, the issue also applies (and more frequently) to the main Javascript files such as jquery.js which brings down RoundCube each time. 0 -
Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you. 0 -
I've opened a ticket, Your Support Request ID is: 8770631 0 -
Hello, The error you see is similar to the attached picture? 0 -
Yes that is exactly the issue at hand. 0 -
Hello, To update, internal case CPANEL-15443 was opened to address an issue where cpsrvd can issue an incorrect MIME type for 308 redirects when using proxy subdomains. This can lead to the issue described in this thread, where Roundcube fails to properly open in Internet Explorer. A workaround that addresses this issue in most cases is to convert Roundcube to SQLite using the instructions documented at: How to Convert Roundcube to SQLite - cPanel Knowledge Base - cPanel Documentation I'll monitor this case and update this thread with more information as it becomes available. Thank you. 0 -
I am already using Roundcube with SQLite Hello, To update, internal case CPANEL-15443 was opened to address an issue where cpsrvd can issue an incorrect MIME type for 308 redirects when using proxy subdomains. This can lead to the issue described in this thread, where Roundcube fails to properly open in Internet Explorer. A workaround that addresses this issue in most cases is to convert Roundcube to SQLite using the instructions documented at:
0 -
Hello, It does seem that using SQLite does not act as a workaround in all cases. The only other workaround at this time (other than using a different web browser) is to avoid using proxy subdomains to access webmail. I'll continue to monitor this case and update this thread with the outcome. Thank you. 0
Please sign in to leave a comment.
Comments
9 comments