Class UserAvatarContributor

java.lang.Object
jenkins.security.csp.impl.UserAvatarContributor
All Implemented Interfaces:
ExtensionPoint, Contributor

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public class UserAvatarContributor extends Object implements Contributor
This extension automatically allows loading images from the domain hosting the current user's avatar as determined via UserAvatarResolver. Note that this will not make avatars of other users work, if they're from different domains.
  • Constructor Details

    • UserAvatarContributor

      public UserAvatarContributor()
  • Method Details

    • apply

      public void apply(CspBuilder cspBuilder)
      Description copied from interface: Contributor
      Contribute to the builder's rules by adding to or removing from the provided CspBuilder.
      Specified by:
      apply in interface Contributor
      Parameters:
      cspBuilder - the builder