Score:0

Apache proxy changing mime type?

ar flag

I have installed YouTrack as a .jar and seems to come up fine. But when I go to the URL, I get this error in the console:

Refused to execute script from 'https://tickets.example.com/whatever/static/vendor.6b054d71bd96ab0aabb0.js' 
because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

I have youtrack behind a firewall, and I am using apache2 for the listener, and proxies to forward the request like this:

ProxyPass / http://10.8.0.1:8081/whatever/
ProxyPassReverse / http://10.8.0.1:8081/whatever/

Using the developer tools, it is clear that the mime-type is text/html. what is weird that when I ssh to the server and call the url directly like this:

 wget http://10.8.0.1:8081/whatever/static/vendor.6b054d71bd96ab0aabb0.js

The response is:

Connecting to 10.8.0.1:8081... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1063387 (1.0M) [application/javascript]

Clearly correct. So I can only think that apache is setting/re-writing the mime type in the headers.

How can this be? I must be missing a setting or something. Any ideas?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.