ContentSourceRestriction

olon.http.ContentSourceRestriction
See theContentSourceRestriction companion trait

Attributes

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

Members list

Type members

Classlikes

case object All extends GeneralSourceRestriction

Indicates content from all sources is allowed.

Indicates content from all sources is allowed.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
All.type
case class Host(hostAndPath: String) extends GeneralSourceRestriction

Indicates content from the given host path is allowed. See the Content-Security-Policy spec's matching rules for `host-source` for more about what this can look like.

Indicates content from the given host path is allowed. See the Content-Security-Policy spec's matching rules for `host-source` for more about what this can look like.

Example:

Host("https://base.*.example.com")

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object None extends GeneralSourceRestriction

Indicates content from no sources is allowed.

Indicates content from no sources is allowed.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
None.type
case class Scheme(scheme: String) extends GeneralSourceRestriction

Indicates content from the given scheme is allowed. The scheme should not include the trailing :.

Indicates content from the given scheme is allowed. The scheme should not include the trailing :.

Example:

Scheme("data")

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object Self extends GeneralSourceRestriction

Indicates content from the same origin as the content is allowed.

Indicates content from the same origin as the content is allowed.

Attributes

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

Indicates eval and related functionality can be used. Some of Lift's functionality, including idMemoize and comet handling, relies on eval, so not including this in your script sources will mean you won't be able to use those.

Indicates eval and related functionality can be used. Some of Lift's functionality, including idMemoize and comet handling, relies on eval, so not including this in your script sources will mean you won't be able to use those.

If not specified for JavaScript, invoking eval, the Function constructor, or setTimeout/setInterval with a string parameter will all throw security exceptions in a browser that supports content security policies.

Attributes

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

Indicates inline content on the page is allowed to be interpreted. It is highly recommended that this not be used, as it exposes your application to cross-site scripting and other vulnerabilities.

Indicates inline content on the page is allowed to be interpreted. It is highly recommended that this not be used, as it exposes your application to cross-site scripting and other vulnerabilities.

If not specified for JavaScript, JavaScript on* event handler attributes, <script> elements, and javascript: URIs will not be executed by a browser that supports content security policies.

If not specified for stylesheets, <style> elements and inline style attributes will not be read by a browser that supports content security policies.

Attributes

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

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror