]> source.dussan.org Git - sonarqube.git/commitdiff
allow proxying to sonarcloud
authorStas Vilchik <stas.vilchik@sonarsource.com>
Mon, 11 Jun 2018 15:16:04 +0000 (17:16 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 12 Jun 2018 18:20:58 +0000 (20:20 +0200)
server/sonar-web/scripts/start.js

index 28afc572245d4a66ccf145f83e1daa61fc7c6b30..839fcf48eb923080bef883f99d9f8f79f8606b45 100644 (file)
@@ -105,9 +105,9 @@ function runDevServer(compiler, host, port, protocol) {
       disableDotRule: true
     },
     proxy: {
-      '/api': proxy,
-      '/static': proxy,
-      '/integration': proxy
+      '/api': { target: proxy, changeOrigin: true },
+      '/static': { target: proxy, changeOrigin: true },
+      '/integration': { target: proxy, changeOrigin: true }
     }
   });