MCPcopy Create free account
hub / github.com/Kong/insomnia / constructor

Method constructor

packages/insomnia/src/scripting/sandbox.ts:259–259  ·  view source on GitHub ↗
(private readonly rules: ThreatRule[])

Source from the content-addressed store, hash-verified

257// Extend with `.withRule()` or reduce with `.withoutRule()`.
258export class ScriptSecurityPolicy {
259 constructor(private readonly rules: ThreatRule[]) {}
260
261 // returns a policy with `rule` appended (immutable).
262 withRule(rule: ThreatRule): ScriptSecurityPolicy {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected