Closed steveops closed 7 years ago
Hi
Where? In the service worker script?
Yes, just in info param put a data property with the string you would like to send.
When a request is intercepted, I am able to redirect it to a new url. Is there a way to modify its payload also before rerouting?
Yes, for example, here: https://sirdarckcat.github.io/#/service-worker
Select "fetch", then on URL put: /sw/fetch?url=https://httpbin.org/post&init={"method":"POST","body":"bar"}
Then put in the options, configure method:POST and body:foo
You will see that the request was made with "bar" rather than "foo"
Hello, am finding it hard to understand whats going on there. Is that another tool altogether or is is part of tamper? Could you please explain in simple terms how to proceed from this menu:
Ah, you want to ask that here: https://groups.google.com/forum/#!forum/tamper-chrome-help =)
I didn't know what you were talking about.
To answer your question - Chrome doesn't expose any APIs to do that, but I'm trying to make it work anyway.
What you can do instead is to:
This is very similar to what you asked for.
Ok thanks, I'll try that.
let me know how it goes!
Sure, I will.
Is there a way to modify the request payload?