Skip to content

struct ActionController::MCPServer::UICSP
inherits Struct #

Content security policy domains for a card, see UIMeta

Included modules

JSON::Serializable

Extended modules

JSON::Schema

Constructors#

.new(pull : JSON::PullParser)#

View 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)#

View source

.new(*, __pull_for_json_serializable pull : JSON::PullParser)#

View source

Methods#

#base_uri_domains : Array(String) | ::Nil#

origins allowed as the document base URI

View source

#connect_domains : Array(String) | ::Nil#

origins the card can connect to (fetch, websockets)

View source

#frame_domains : Array(String) | ::Nil#

origins the card can embed in frames

View source

#resource_domains : Array(String) | ::Nil#

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

View source