Skip to content

Proxy URL mode: review a live http(s) page #2

Description

@seanpk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:serverLocal serving + CLI (src/server).enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions