Skip to content

Inject into response? #685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
8eecf0d2 opened this issue Aug 21, 2014 · 3 comments
Closed

Inject into response? #685

8eecf0d2 opened this issue Aug 21, 2014 · 3 comments

Comments

@8eecf0d2
Copy link

In great anticipation to the 1st of April (April Fools) I'm trying to setup an elaborate prank.

I need a proxy server that can inject some jQuery into the html part of the response - after searching I found this gist but it runs into problems with:

Error: Must provide a proper URL as target

I've read over it and can't see why it's failing? I've not used node-http-proxy before though but I tested it and all made basic sense. I'm thinking somethings deprecated since it's 2 years old.

Any ideas?

@philippotto
Copy link

I think, harmon could be interesting for you. It uses http-proxy and node-trumpet to manipulate HTML.

@jcrugzz
Copy link
Contributor

jcrugzz commented Aug 23, 2014

@brod the example you found uses http-proxy 0.10.x which had a different api. If you modify it to work with the new conventions, it seems like it should work. Checkout the readme.

@philippotto also has a good idea

@No9
Copy link
Contributor

No9 commented Oct 15, 2014

Just bumped harmon to work with connect v3 and trumpet 1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants