Class WhiteListedAllowFromStrategy

java.lang.Object
org.springframework.security.web.header.writers.frameoptions.AbstractRequestParameterAllowFromStrategy
org.springframework.security.web.header.writers.frameoptions.WhiteListedAllowFromStrategy
All Implemented Interfaces:
AllowFromStrategy

@Deprecated public final class WhiteListedAllowFromStrategy extends AbstractRequestParameterAllowFromStrategy
Deprecated.
ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.
Implementation which checks the supplied origin against a list of allowed origins.
Since:
3.2
  • Constructor Details

    • WhiteListedAllowFromStrategy

      public WhiteListedAllowFromStrategy(Collection<String> allowed)
      Deprecated.
      Creates a new instance
      Parameters:
      allowed - the origins that are allowed.
  • Method Details