feat(inspector): add local network access support for HTTPS to HTTP connections

This commit is contained in:
Nathan Flurry 2026-01-28 01:37:56 -08:00
parent e984d07c28
commit d1cbd20b83
4 changed files with 83 additions and 2 deletions

View file

@ -154,8 +154,14 @@ export default function App() {
};
let logged = false;
// Add targetAddressSpace for local network access from HTTPS
const fetchInit = {
...init,
targetAddressSpace: "loopback"
};
try {
const response = await fetch(input, init);
const response = await fetch(input, fetchInit);
logRequest({ ...entry, status: response.status });
logged = true;
return response;