You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for this repo! It's been really useful for stubbing out some JS files with local versions without having to do tons of data setup
Right now I'm doing something like the following to stub out some requests on a proxied host. I'd love to know if 1) there is an easier way to do this or 2) you'd be open to me adding some helpers to streamline this:
require'evil-proxy'proxy=EvilProxy::MITMProxyServer.newPort: 8080,MITMPattern: /my\.server\.com/proxy.after_mitmdo |req,res|
# Hook into the created MITM server and prepend functionality to the GET handler@mitm_servers["my.server.com"].singleton_class.class_evaldodefdo_GET(req,res)ifreq.path =~ /some.*.file/res.body="hello world"elsesuperendendendendproxy.start
The text was updated successfully, but these errors were encountered:
Hey, thanks for this repo! It's been really useful for stubbing out some JS files with local versions without having to do tons of data setup
Right now I'm doing something like the following to stub out some requests on a proxied host. I'd love to know if 1) there is an easier way to do this or 2) you'd be open to me adding some helpers to streamline this:
The text was updated successfully, but these errors were encountered: