ContentSecurityPolicy

zio.http.Header.ContentSecurityPolicy
See theContentSecurityPolicy companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
trait HeaderType
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
Self type
final case class PluginTypes(value: String) extends ContentSecurityPolicy

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class Referrer(referrer: ReferrerPolicy) extends ContentSecurityPolicy

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ReferrerPolicy extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object no-referrer.type
object none-when-downgrade.type
object origin.type
object unsafe-url.type
final case class ReportTo(groupName: String) extends ContentSecurityPolicy

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class ReportUri(uri: URI) extends ContentSecurityPolicy

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class RequireSriFor(requirement: RequireSriForValue) extends ContentSecurityPolicy

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait RequireSriForValue extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Script.type
object ScriptStyle.type
object Style.type
final case class Sandbox(value: SandboxValue) extends ContentSecurityPolicy

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
object SandboxValue

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait SandboxValue

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AllowForms.type
object AllowModals.type
object AllowOrientationLock.type
object AllowPointerLock.type
object AllowPopups.type
object AllowPresentation.type
object AllowSameOrigin.type
object AllowScripts.type
object AllowTopNavigation.type
object Empty.type
class Sequence
Show all
Self type
object Source

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Source.type
sealed trait Source

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Hash
class Host
class Nonce
object ReportSample.type
class Scheme
object Self.type
class Sequence
object StrictDynamic.type
object UnsafeEval.type
object UnsafeHashes.type
object UnsafeInline.type
object WasmUnsafeEval.type
object none.type
Show all
Self type
final case class SourcePolicy(srcType: SourcePolicyType, src: Source) extends ContentSecurityPolicy

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait SourcePolicyType

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object base-uri.type
object child-src.type
object connect-src.type
object default-src.type
object font-src.type
object form-action.type
object frame-ancestors.type
object frame-src.type
object img-src.type
object manifest-src.type
object media-src.type
object object-src.type
object prefetch-src.type
object script-src.type
object script-src-attr.type
object script-src-elem.type
object style-src.type
object style-src-attr.type
object style-src-elem.type
object worker-src.type
Show all
final case class TrustedTypes(value: TrustedTypesValue) extends ContentSecurityPolicy

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait TrustedTypesValue extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class PolicyName
class Sequence
object Wildcard.type
object allow-duplicates.type
object none.type
Self type

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
Self type

Types

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromTypeAndPolicy(policyType: String, policy: String): Either[String, ContentSecurityPolicy]
def imgSrc(src: Source*): SourcePolicy
override def name: String

Attributes

Definition Classes
def parse(value: String): Either[String, ContentSecurityPolicy]
def render(csp: ContentSecurityPolicy): String