This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243689

Summary: Proxy ports in Chrome connector
Product: web Reporter: mcarans
Component: Live HTMLAssignee: David Konecny <dkonecny>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description mcarans 2014-04-09 09:10:01 UTC
It would be fantastic for HTML5 projects or subprojects of Java EE under "Web Pages" if the Chrome connector could be set up to proxy ports eg. to a server. 

Currently this can be achieved by using Grunt to run a server with live previewing/auto-refresh and proxying, but it would be better if the Chrome connector could do this.

In the gruntfile.js, it can be done like this:

    connect: {
      proxies: [
          context: '/myapp',
          host: 'localhost',
          port: 8080,
          https: false,
          changeOrigin: false
      options: {
        port: 8383,
        // Change this to '' to access the server from outside.
        hostname: 'localhost',
        livereload: 35729