mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-19 17:04:48 +00:00
feat(inspector): add local network access support for HTTPS to HTTP connections
This commit is contained in:
parent
e984d07c28
commit
d1cbd20b83
4 changed files with 83 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue