struct

ActionController::MCPServer::UICSP

Inherits JSON::Serializable < Struct < Value < Object

Content security policy domains for a card, see UIMeta

Constructors

new(pull : JSON::PullParser)
Source
new(connect_domains : Nil | Array(String) = nil, resource_domains : Nil | Array(String) = nil, frame_domains : Nil | Array(String) = nil, base_uri_domains : Nil | Array(String) = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

base_uri_domains

origins allowed as the document base URI

Source
connect_domains

origins the card can connect to (fetch, websockets)

Source
frame_domains

origins the card can embed in frames

Source
resource_domains

origins the card can load scripts, styles, images, fonts and media from

Source