2017-12-15 10 views
0

Apache Tomcatでうまく動作しているSonar Qubeサーバーと、IISでURL書き換えを実行しているリバースプロキシがあります。リバースプロキシはドメイン名をSonar Qubeのlocalhost:9000アドレスにマッピングしますが、ホームページに埋め込まれたjavaスクリプトファイルは実行されません。 Chromeの開発ツールでは、私は(会社敏感名は、このエラー出力にジェネリック行われている)、このエラーが出る:IISの逆プロキシのSonarQubeがスクリプトの実行を拒否します

Refused to execute script from 'http://sonarqube.company.us/sonar/js/vendor.foo.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. 
Refused to execute script from 'http://sonarqube.company.us/sonar/js/app.bar.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. 

私は無駄に文字にデベロッパーのブログの記事の指示に従ってきました(それは3ですパート3では、この特定の問題に対処しています)。https://blogs.msdn.microsoft.com/friis/2016/08/25/iis-with-url-rewrite-as-a-reverse-proxy-part-3-rewriting-the-outbound-response-contents/

これまでに誰もこれに反対して解決しましたか?

答えて

1

JavaScriptファイルのMIMEタイプが正しくないため、リバースプロキシの設定が正しくないようです。

MIMEタイプを上書きする設定を削除できますか? SonarQubeによって送信されたものは保存されるべきです。

関連する問題