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
1
vote
0 answers

Grunt express livereload and proxy does not work?

I want to launch a web server from grunt with livereload and that proxies Rest calls towards the server. Here is my Gruntfile.js : var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest; module.exports = function(grunt) { …
crepu
  • 91
  • 9
1
vote
1 answer

Grunt Connect Proxy Server not connecting to Proxy Server

I've followed the documentation on the GCP Github but that did not proxy requests to my rails server. I've read that there are middleware changes but those haven't worked either. I had this working a month ago but sadly deleted the project that…
1
vote
0 answers

Unable to use grunt-connect-proxy while running Karma

I am trying to execute unit-test using Karma. When I load up the application, the mapping which I have done for the grunt-connect-proxy is been utilized. But while testing, the plugin does not works. I have the following configuration for running…
Abhay Pai
  • 314
  • 4
  • 17
1
vote
0 answers

grunt-connect-proxy too much delay in requests

I'm using the proxy in a angular project with a local server and there is an important delay when the proxy is up. Comparative requests between running and not running the proxy: Request --- Proxy --- Server request1 --- 15.3s --- 602ms request2 ---…
Serginho
  • 7,291
  • 2
  • 27
  • 52
1
vote
1 answer

Adding grunt-connect-proxy to my Yeoman generated gruntfile.js

I'm new to Grunt (and JavaScript in general) and I'm trying to add grunt-connect-proxy to my Yeoman generated gruntfile (generator-angular 0.10.0). I've read -->this guide to help me out but it does not seem to be done in the same way anymore. This…
mottosson
  • 3,283
  • 4
  • 35
  • 73
1
vote
1 answer

Grunt connect proxy rewrite not works in https

I try to create a connect proxy by this article. Almost everything is the same in my code, but I need to call something across https protocol. connect: { options: { port: 9000, hostname: '0.0.0.0', livereload: 35729 }, proxies:…
kree
  • 440
  • 1
  • 9
  • 26
1
vote
0 answers

Grunt Connect Proxy not sending POST Parameters

I have an my app configured to use grunt-connect-proxy. Request reach the server and evverything is working fine apart from POST requests. When running grunt with the verbose option set, I can see: Proxied request: /api/data.json ->…
jribeiro
  • 3,387
  • 8
  • 43
  • 70
1
vote
1 answer

Rewrite cookie paths when using grunt-connect-proxy

During development I use grunt-connect-proxy to make some remote APIs locally available. This works just fine, except that the rewrite rules that I use are not applied to cookies: proxies: [{ context: '/publicPath', host: 'localhost', port:…
yankee
  • 38,872
  • 15
  • 103
  • 162
0
votes
1 answer

Adding server task to my gruntfile.js which contains connect task for connecting to middleware proxies, but not being found

I am adding a new server task to my existing gruntfile which contained the only task to build the content into minified files. I need to add the server/serve task. The goal of the server task for me is to connect to the middleware proxies to…
saumj
  • 171
  • 1
  • 2
  • 11
0
votes
1 answer

grunt connect proxy + grunt-livereload 404 when reload

I'm have problem with my Gruntfile config but I don't know how resolve this. When my path has single route ex: localhost:9000/contractor reload work fine, but when reload localhost:9000/add/something I get error 404 beacuse browser search files in…
0
votes
1 answer

ngResource does not connect to proxy

I have a yeoman angular app, I have configured grunt-connect-proxy in Gruntfile.js like this: module.exports = function (grunt) { grunt.loadNpmTasks('grunt-connect-proxy'); [...] connect: { options: { port: 9000, // Change this to…
0
votes
0 answers

using gulp-proxy-connect for AJAX calls

I started using gulp for my project. Earlier in the project i used grunt in which i was able to configure Ajax requests using grunt-connect-proxy. GruntFile.js connect: { options: { hostname: 'localhost', …
0
votes
1 answer

Duplicate data property in object literal not allowed in strict mode grunt-connect-proxy

I'm following a tutorial from Tutsplus which titles "Hands on Angularjs", in the tutorial the instructor uses the grunt-connect-proxy package for redirecting ajax requests to rails server running on localhost:3000, but I think the tutorial is old…
0
votes
0 answers

grunt proxy issue with corporate proxy?

My system: git bash on Windows 7 // The actual grunt server settings connect: { options: { port: 8000, // Change this to '0.0.0.0' to access the server from outside. hostname: 'localhost', livereload: 35729 …
Juri
  • 32,424
  • 20
  • 102
  • 136
0
votes
1 answer

Grunt Connect Proxy returns 503 (Service Unavailable) in Browser

I am working with a yeoman generator-angular app and a remote API, my gruntfile config seems to be fine: // Generated on 2015-06-01 using generator-angular 0.11.1 'use strict'; module.exports = function (grunt) { / * Removed for brevity */ …