Summary
Production origins are not yet known. CORS is currently relaxed (empty allowlist = allow-all) to avoid breaking deployments.
Task
When production origins are known:
- Set
CORS_ALLOWED_ORIGINS in Vercel and any plugin backend deployments (e.g. https://app.naap.io,https://your-app.vercel.app)
- Update CORS logic to fail closed when allowlist is empty (reject requests with Origin header)
- Remove the allow-all fallback
Files to update
packages/plugin-server-sdk/src/server.ts
services/plugin-server/src/server.ts
plugins/plugin-publisher/backend/src/server.ts
References
See // TODO: comments in the CORS config of the above files.