MCPcopy Create free account
hub / github.com/coder/mux / isSecureRequest

Function isSecureRequest

src/node/orpc/server.ts:907–909  ·  view source on GitHub ↗
(req: OriginValidationRequest)

Source from the content-addressed store, hash-verified

905 }
906
907 function isSecureRequest(req: OriginValidationRequest): boolean {
908 return getPreferredPublicProtocol(req, allowHttpOrigin) === "https";
909 }
910
911 function getServerSessionCookiePath(req: express.Request): string {
912 return getRequestPublicBasePath(req, { allowReferer: true });

Callers 1

createOrpcServerFunction · 0.85

Calls 1

Tested by

no test coverage detected