2017-12-15 19 views
0

Apache Tomcat에서 실행중인 Sonar Qube 서버와 IIS에서 URL 재 작성을 사용하는 역방향 프록시가 있습니다. 역방향 프록시는 도메인 이름을 Sonar Qube의 localhost : 9000 주소에 매핑하지만 홈 페이지에 포함 된 Java 스크립트 파일은 실행되지 않습니다. 크롬의 개발 도구에서 나는이 오류 (기업 민감한 이름이 오류 출력에 일반적인되었습니다) 얻을 : 나는 아무 소용이 편지에이 어플의 개발자의 블로그 게시물의 지시를 따랐습니다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의 Part 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

자바 스크립트 파일의 MIME 형식이 잘못되어 역방향 프록시 설정이 올바르지 않은 것으로 보입니다.

MIME 형식을 덮어 쓰는 구성을 제거 할 수 있습니까? SonarQube에서 보낸 것이 보존되어야합니다.