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

Responding with JSON #24

Open
joshuaManlunas opened this issue Apr 23, 2018 · 1 comment
Open

Responding with JSON #24

joshuaManlunas opened this issue Apr 23, 2018 · 1 comment

Comments

@joshuaManlunas
Copy link

Hello Kyle,
I hope you would consider adding the feature to respond with JSON so the extension can be used for REST API testing. So when an endpoint is queried we can give the app our own JSON response?

Cheers

@kylepaulsen
Copy link
Owner

I assume you want to do this with a URL -> File rule.
I think this used to work, but maybe not anymore: https://bugs.chromium.org/p/chromium/issues/detail?id=521475#c11
If you want to make fake fetch requests (redirect them to a response you provide), this might only be possible with a URL -> URL rule now... You could always set up a quick server I guess. This is really unfortunate though.

Although wait, old xmlhttprequests seem to work? Not sure why they work but fetch doesnt. Let me know if you figure out anything.

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