MCPcopy Index your code
hub / github.com/simstudioai/sim / isCrossSiteSessionRequest

Function isCrossSiteSessionRequest

apps/sim/lib/core/security/same-origin.ts:21–23  ·  view source on GitHub ↗
(req: NextRequest)

Source from the content-addressed store, hash-verified

19 * the credit and execution rate-limit gates.
20 */
21export function isCrossSiteSessionRequest(req: NextRequest): boolean {
22 return req.headers.get('sec-fetch-site') === 'cross-site'
23}

Callers 2

handleExecutePostFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected