public class PolicyInOrigin extends Object
| Constructor and Description |
|---|
PolicyInOrigin(Policy policy,
URLWithScheme origin) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsConnection(URLWithScheme url) |
boolean |
allowsFontFromSource(URLWithScheme url) |
boolean |
allowsFormAction(URLWithScheme url) |
boolean |
allowsFrameAncestor(URLWithScheme url) |
boolean |
allowsFrameFromSource(URLWithScheme url) |
boolean |
allowsImageFromSource(URLWithScheme url) |
boolean |
allowsManifestFromSource(URLWithScheme url) |
boolean |
allowsMediaFromSource(URLWithScheme url) |
boolean |
allowsNavigation(URLWithScheme url) |
boolean |
allowsObjectFromSource(URLWithScheme url) |
boolean |
allowsPrefetchFromSource(URLWithScheme url) |
boolean |
allowsScriptFromSource(URLWithScheme url) |
boolean |
allowsStyleFromSource(URLWithScheme url) |
boolean |
allowsUnsafeInlineScript() |
boolean |
allowsUnsafeInlineStyle() |
boolean |
allowsWorkerFromSource(URLWithScheme url) |
Policy |
getPolicy() |
public PolicyInOrigin(Policy policy, URLWithScheme origin)
public Policy getPolicy()
public boolean allowsScriptFromSource(URLWithScheme url)
public boolean allowsStyleFromSource(URLWithScheme url)
public boolean allowsImageFromSource(URLWithScheme url)
public boolean allowsFrameFromSource(URLWithScheme url)
public boolean allowsWorkerFromSource(URLWithScheme url)
public boolean allowsFontFromSource(URLWithScheme url)
public boolean allowsObjectFromSource(URLWithScheme url)
public boolean allowsMediaFromSource(URLWithScheme url)
public boolean allowsManifestFromSource(URLWithScheme url)
public boolean allowsPrefetchFromSource(URLWithScheme url)
public boolean allowsUnsafeInlineScript()
public boolean allowsUnsafeInlineStyle()
public boolean allowsConnection(URLWithScheme url)
public boolean allowsNavigation(URLWithScheme url)
public boolean allowsFrameAncestor(URLWithScheme url)
public boolean allowsFormAction(URLWithScheme url)
Copyright © 2025 HtmlUnit. All rights reserved.