Interceptor

interface Interceptor

Registers callbacks that can decide whether a top-level URL navigation should continue.

Navigation interceptors are evaluated in ascending index order. Multiple handlers registered with the same index keep their platform implementation order. The returned CloseHandle removes the handler when closed.

This API is intended for URL navigation policy, such as allow lists, external routing, blocking URLs, or redirecting a navigation to another URL. It does not intercept arbitrary subresource requests such as images, scripts, stylesheets, fetch/XHR calls, or response bodies.

Functions

Link copied to clipboard

Adds a navigation interceptor.