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 - Proxy ports in Chrome connector
Summary: Proxy ports in Chrome connector
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: Live HTML (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-09 09:10 UTC by mcarans
Modified: 2014-04-09 09:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 '0.0.0.0' to access the server from outside.
        hostname: 'localhost',
        livereload: 35729
      },