Grunt plugin providing an HTTP proxy middleware for grunt-contrib-connect. Current stable version is 0.2.0 (last release circa 2015, maintenance mode). It allows developers to proxy requests from a local Connect server to remote hosts during development, supporting context path mapping, HTTPS, custom headers, and header hiding. Unlike general-purpose proxies, it integrates directly into Grunt's connect task middleware chain. Requires Grunt ~0.4.1 and is Node >= 0.10.0 compatible. No significant updates since 2015; consider alternatives like http-proxy-middleware for modern projects.
npm install grunt-connect-proxyVerified import paths — ran on the pinned version, not inferred.
Shows complete Gruntfile setup: loading plugin, configuring connect with proxy middleware, adding proxy context, and registering server task.
Always pass the target name to configureProxies, e.g., 'configureProxies:server'.
Ensure proxy middleware is first in the middlewares array.
Use require('grunt-connect-proxy/lib/utils').proxyRequest.Migrate to modern alternatives like http-proxy-middleware with grunt-contrib-connect or standalone.
Add grunt.loadNpmTasks('grunt-connect-proxy'); at the top of your Gruntfile.Use require('grunt-connect-proxy/lib/utils').proxyRequestEnsure proxy is the first middleware in the array: [proxy, ...]
Verify proxies array is inside options of the connect target (e.g., connect.server.options.proxies).