SecurityPolicyWarning Class

A warning produced by validate_security_policy when the widget HTML references an external origin not present in the declared security policy.

Diagnostic: ExperimentalTeamsHtmlWidget

Constructor

SecurityPolicyWarning(url: str, source: str, policy_field: str, message: str)

Parameters

Name Description
url
Required
source
Required
policy_field
Required
message
Required

Attributes

message

A human-readable description of the issue.

message: str

policy_field

The security_policy field that should include this origin.

policy_field: str

source

The HTML element or API where the reference was found.

source: str

url

The URL or origin found in the HTML.

url: str