Guides
Each guide answers one question you might search for while debugging in Chrome. They show the way to do it without an extension first, then the DevHeader way, and say what DevHeader can't do.
Mocking API responses
- How to mock API responses in Chrome without a backend
Fake fetch/XHR and GraphQL responses with any status, body, and headers, before the backend exists. - How to simulate a 500 error in Chrome
Make one API endpoint return a 500 Internal Server Error in Chrome to test your error UI, using DevTools or a DevHeader mock rule, with no backend changes. - How to mock one GraphQL query in Chrome
Mock a single GraphQL query or mutation in Chrome while every other operation on the same /graphql endpoint keeps hitting the real server. - How to test an empty state without changing the database
Make a list endpoint return an empty array in Chrome so you can check your empty state, without deleting data or touching the backend. - How to test what happens when a token expires (401)
Force an API call to return 401 Unauthorized in Chrome to test your logout, token refresh, or session-expired flow without waiting for a real token to expire.
Request and response headers
- How to add an Authorization header to every request in Chrome
Send a Bearer token or other Authorization header on every request to one domain in Chrome, including page loads and fetch calls, without changing the app. - "Blocked by CORS policy" while testing: how to unblock it in Chrome
Why Chrome says a request "has been blocked by CORS policy", how to fix it on the server, and how to add Access-Control-Allow-Origin in the browser while you test. - How to test a Content-Security-Policy change without deploying
Try a new Content-Security-Policy header on your real site in Chrome before you deploy it, and see exactly what it blocks. - "Refused to display in a frame because it set X-Frame-Options"
What the X-Frame-Options frame error means, how to fix it on the server, and how to load the page in an iframe in Chrome while you test. - How to change Accept-Language in Chrome to test translations
Send a different Accept-Language header to one site in Chrome to test server-side localization, and learn why navigator.language does not change with it.
Redirects
- How to use a local API with the production frontend
Redirect a deployed site's API calls to a server on localhost in Chrome with a regex rule, and the CORS and Local Network Access rules that still apply.