Start a standalone NAP-RESOURCE proxy for static Paja builds.
It answers POST / and POST /__kehto/resource only for allowlisted origins, with CORS preflight, and refuses to start without an allowlist.
POST /
POST /__kehto/resource
Allowed origins and listen address.
The proxy URL and a closer.
const proxy = await startPajaResourceProxy({ allowedOrigins: ['https://kehto.github.io'], host: '127.0.0.1', port: 8787 }); Copy
const proxy = await startPajaResourceProxy({ allowedOrigins: ['https://kehto.github.io'], host: '127.0.0.1', port: 8787 });
Start a standalone NAP-RESOURCE proxy for static Paja builds.
It answers
POST /andPOST /__kehto/resourceonly for allowlisted origins, with CORS preflight, and refuses to start without an allowlist.