Hello everyone.
I’m facing a problem loading stylesheets for an application that is behind a HAProxy. The application was written in Java, and runs on a Tomcat server, as shown in the sketch below.
┌─────────┐
┌──433/tcp─►│ HAProxy │──────────┐
│ └─────────┘ │
│ 8080/tcp
│ ▼
┌────┴────┐ ┌────┴────┐
│ client ├────────────8083/tcp─►│ Tomcat │
└─────────┘ └─────────┘
When directly accessing the application on the target server via port 8083/tcp
, the interface is displayed normally.
However, when accessing the application 433/tcp
, via the reverse proxy, I get the following error messages, which indicates that the problem is being generated by HAProxy.
All links to the stylesheets are defined correctly and follow the pattern below:
<link rel="stylesheet" type="text/css" href="/folder/mystyle.css">
All paths are correct because when clicking on the error link, the respective CSS files are displayed by the browser.
Below are the headers returned for the same CSS file:
Is there any way to disable this MIME type check in the backend configuration?