struct ActionController::MCPServer::UICSP

Overview

Content security policy domains for a card, see UIMeta

Included Modules

Extended Modules

Defined in:

action-controller/mcp/ui.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def base_uri_domains : Array(String) | Nil #

origins allowed as the document base URI


[View source]
def connect_domains : Array(String) | Nil #

origins the card can connect to (fetch, websockets)


[View source]
def frame_domains : Array(String) | Nil #

origins the card can embed in frames


[View source]
def resource_domains : Array(String) | Nil #

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


[View source]