Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.3.x] fix(core): hardening attribute and property binding rules for <iframe> elements #48029

Closed

Commits on Nov 12, 2022

  1. fix(core): hardening attribute and property binding rules for <iframe…

    …> elements
    
    This commit updates the logic related to the attribute and property binding rules for <iframe> elements. There is a set of <iframe> attributes that may affect the behavior of an iframe and this change enforces that these attributes are only applied as static attributes, making sure that they are taken into account while creating an <iframe>.
    
    If Angular detects that some of the security-sensitive attributes are applied as an attribute or property binding, it throws an error message, which contains the name of an attribute that is causing the problem and the name of a Component where an iframe is located.
    
    BREAKING CHANGE:
    
    Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.
    AndrewKushnir committed Nov 12, 2022
    Copy the full SHA
    829738d View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    e7b036c View commit details
    Browse the repository at this point in the history