Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

PRECONNECT_CHECK_BLOCKLIST

Injection token to configure which origins should be excluded from the preconnect checks. It can either be a single string or an array of strings to represent a group of origins, for example:

See more...

      
      const PRECONNECT_CHECK_BLOCKLIST: InjectionToken<(string | string[])[]>;
    

Description

      
      {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}
    

or:

      
      {provide: PRECONNECT_CHECK_BLOCKLIST,
 useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}