Placebo API documentation
Placebo API is a Chrome extension that changes what the browser receives. You write rules: a URL pattern, and what should happen to matching requests. Changes apply to open tabs at once, with no proxy, no certificates and no backend changes.
What a rule can do
- Override a response: replace the body and status code of
fetchandXMLHttpRequestcalls, with or without sending the real request. - Build a response with JavaScript: change the real response on the fly, for example add a field or fake an error for one user.
- Modify headers: set or remove request and response headers on any request.
- Block or redirect: make a request fail, or load another URL instead, for scripts, CSS and images too.
Where to start
- Getting started: install the extension and mock your first response in a minute.
- How rules match: patterns, methods, priority and folders.
- Troubleshooting: when a rule doesn’t seem to apply.
Coming from another tool? Import your rules, including Requestly exports.
Something unclear or missing? Tell me, and I'll fix the docs.