ResourceOverride icon indicating copy to clipboard operation
ResourceOverride copied to clipboard

Responding with JSON

Open joshuaManlunas opened this issue 7 years ago • 1 comments

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

joshuaManlunas avatar Apr 23 '18 01:04 joshuaManlunas

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.

kylepaulsen avatar Apr 27 '18 00:04 kylepaulsen