Skip to content

remix/component/server · Interface

View Source

ResolveFrameContext

Summary

Context passed to resolveFrame during server rendering.

Signature

interface ResolveFrameContext {
  currentFrameSrc: string
  nonce?: string
  topFrameSrc: string
}

Properties

currentFrameSrc

Source URL for the frame currently being resolved.

nonce

Nonce from the enclosing render. Pass it to nested renderToStream() calls so generated elements use the document's Content Security Policy nonce.

topFrameSrc

Source URL for the top-level frame in the current render.