Questions tagged [grunt-connect-proxy]

Provides a HTTP proxy as middle-ware for the grunt-contrib-connect plugin.

Provides a HTTP proxy as middle-ware for the grunt-contrib-connect plugin.

31 questions
13
votes
4 answers

Webpack-dev-server with bypass proxy

How to achieve a 'proxy' (similar to grunt-connect-proxy) option with webpack-dev-server ? I am using webpack and webpack-dev-server with Grunt. A task in Gruntfile.js (below code) is able to start the server on port 8080. I want to add proxy setup…
CoderTR
  • 500
  • 3
  • 7
  • 19
13
votes
1 answer

Minimal example of using grunt-connect-proxy

I have an angularJs App which I built with grunt and a server backend written in Java running on a tomcat server. To wire those together when development I wanted to use grunt-connect-proxy. But I could not get it to work even a bit. All the…
yankee
  • 38,872
  • 15
  • 103
  • 162
8
votes
0 answers

grunt-connect-proxy forwarding grunt connect to different url

Issue: I'm trying to connect my grunt server to my api service running on port 8080. Problem: :9000/secured/api/users/portal/me Failed to load resource: the server responded with a status of 503 (Service Unavailable) I think even with…
Main Flow
  • 319
  • 2
  • 18
8
votes
2 answers

Grunt Connect Proxy: 404 Not Found

I'm using grunt-connect-proxy "^0.2.0" to proxy to an api from my angularjs application. The project was started with yeoman angular-generator. I've followed the instructions here but when the proxy is used, I get: Failed to load resource: the…
user3147424
  • 3,022
  • 5
  • 19
  • 22
3
votes
1 answer

grunt-connect-proxy configuration does not proxy

I would like to properly configure grunt-connect-proxy for development and avoid having CORS issues. I have a REST webservice running on a local tomcat at http://localhost:8080/mywebservice a client application created from a yeoman (v1.4.8)…
3
votes
0 answers

How do I configure grunt-connect-proxy with grunt serve?

I managed to configure grunt to serve my application, but since it serves on localhost:9000, my api calls also go to port 9000 while my api is at port 3000, resulting in a 404 error. After some research, I've decided I need to use…
2
votes
1 answer

How do I resolve 404 error from misconfigured grunt-connect-proxy settings in Gruntfile.js?

Background: I'm trying to connect my grunt server instance, to my API service running on the same machine at localhost:8080/api/. Currently using grunt-connect-proxy to achieve this. Problem/Question: http://localhost:9000/api/user-profile/ Failed…
Lindauson
  • 2,963
  • 1
  • 30
  • 33
2
votes
0 answers

Grunt-connect-proxy, forwarding files does not work

I'm using this library to forward api-request from grunt (port 9000) to my api at node (port 3012). https://github.com/drewzboto/grunt-connect-proxy It works when the response from the server is a json. But it does not work when it's a image. I…
Joe
  • 4,274
  • 32
  • 95
  • 175
2
votes
1 answer

Grunt serve "configureProxies:server" not found and "connect_proxy.js" error

I'm trying to run a http server using grunt. However, when I type grunt serve in the appropriate directory, I'm presented with the following errors: Loading "connect_proxy.js" tasks...ERROR >> TypeError: Cannot read property 'prototype' of…
rudolph1024
  • 962
  • 1
  • 12
  • 32
2
votes
1 answer

Proxy CORS requests with grunt to localhost

My app (http://localhost:8099) is doing some CORS requests to https://api.parse.com/ that I want to proxy to my local api http://localhost:8077 for testing purposes. Can this be achived with grunt-connect-proxy? Here's my config of…
Dziamid
  • 11,225
  • 12
  • 69
  • 104
1
vote
0 answers

Request to remote service taking infinite time on connecting via Grunt proxy

I am creating an AngularJS application using grunt, bower and yeoman. The following code using AngularJS is meant to fetch posts from http://jsonplaceholder.typicode.com/posts angular.module('TypiApp.posts', ['ngResource']) …
Kaushik Shrestha
  • 932
  • 1
  • 11
  • 26
1
vote
1 answer

Adding grunt-connect-proxy to generator-angular gruntfile.js

I'm trying to add grunt-connect-proxy to my gruntfile.js in a yeoman generator-angular project (generator-angular 0.15.1) but I can't seem to get it to work since the way it's written changes and I'm inexperienced in how Grunt works. I've read many…
mottosson
  • 3,283
  • 4
  • 35
  • 73
1
vote
0 answers

proxies not working in grunt in yeoman-angular-generator 0.7.1

I have one web server and one app server running on ports 7272 and 8181 respectively. The web server is scaffolded with yeoman-angular-generator(0.7.1). I had configured a proxy to serve up my APIs to facilitate development earlier and it was…
1
vote
0 answers

grunt-contrib-connect: connect is undefined when using jit-grunt and load-grunt-config

I have the following grunt plugins in my package.json installed: "grunt-connect-proxy": "^0.2.0", "grunt-contrib-connect": "^0.11.2", "grunt-contrib-watch": "^0.6.1", "jit-grunt": "^0.9.1", "load-grunt-config": "^0.17.2", "load-grunt-tasks":…
1
vote
1 answer

Loading "connect_proxy.js" tasks...ERROR >> TypeError: Cannot read property 'prototype' of undefined

I'm trying to run a http server using grunt. However, when I type grunt serve in the appropriate directory, I'm presented with the following errors: Loading "connect_proxy.js" tasks...ERROR >> TypeError: Cannot read property 'prototype' of…
SVK
  • 2,107
  • 2
  • 20
  • 41
1
2 3