test(runtime): verify live same-origin canary
This commit is contained in:
@@ -37,6 +37,10 @@ export function buildProductionControlPlane(
|
||||
db,
|
||||
store,
|
||||
upstream: options.upstream ?? createProductionUpstream(),
|
||||
// This route-local decision is safe only in this composition: when a token is
|
||||
// configured, buildApp's global onRequest hook rejects the request first.
|
||||
// Keep all other control-plane compositions fail-closed by default.
|
||||
...(options.gatewayToken ? { authenticateEventStream: () => true } : {}),
|
||||
app: {
|
||||
logger: {},
|
||||
...(options.gatewayToken ? { gatewayToken: options.gatewayToken } : {}),
|
||||
|
||||
Reference in New Issue
Block a user