Review a live http(s) page by fetching it server-side, rather than only local files/dirs. Designed in docs/PLAN-0.1.md but deferred from 0.1; src/server/proxy.js currently serves a "not yet" stub.
Scope (from the deferred design):
- Server-side
fetch of the target URL.
- Inject
<base href> so relative assets resolve — the overlay's assetBase must be the fully-qualified local origin (http://127.0.0.1:<port>/__markupit__/) so the injected <base> doesn't redirect overlay assets to the remote origin.
- Strip
CSP / X-Frame-Options / COOP / COEP.
- Drop
content-encoding / content-length after body mutation.
- Graceful
502 on fetch failure.
Covers requirements SRC-3,4,5,7 and CLI-3.
Review a live
http(s)page by fetching it server-side, rather than only local files/dirs. Designed indocs/PLAN-0.1.mdbut deferred from 0.1;src/server/proxy.jscurrently serves a "not yet" stub.Scope (from the deferred design):
fetchof the target URL.<base href>so relative assets resolve — the overlay'sassetBasemust be the fully-qualified local origin (http://127.0.0.1:<port>/__markupit__/) so the injected<base>doesn't redirect overlay assets to the remote origin.CSP/X-Frame-Options/COOP/COEP.content-encoding/content-lengthafter body mutation.502on fetch failure.Covers requirements
SRC-3,4,5,7andCLI-3.