Skip to content
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

Feature :I hope this tool can ....... #144

Open
520f opened this issue Jul 14, 2022 · 1 comment
Open

Feature :I hope this tool can ....... #144

520f opened this issue Jul 14, 2022 · 1 comment

Comments

@520f
Copy link

520f commented Jul 14, 2022

  • Adding, replacing and removing request headers.
  • Replacing the request body, text/JSON, Base64 or form data.
@scaljeri
Copy link
Owner

This is indeed not possible. I have to investigate, but I think the only way this is possible is via the "Mocking with code" option

mocking-with-code

Then you can use FETCH like this

mocking-coe-fetch

At the moment using fetch will probably give you CORS errors because fetch is executed in a sandbox inside the chrome extension. The only way right now to fix this is to start you browser with web-security disabled. On mac the command looks like this

$> open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security

But that might not be all, because of this sandbox you might not have the required cookies. Cookie support is something I'm working on right now.

So, long story short, after cookie support I will try to fix this issue!

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

2 participants