UNPKG

react-cookie-manager

Version:

🍪 The ultimate React cookie consent solution. Automatically block trackers, manage consent preferences, and protect user privacy with an elegant UI. Perfect for modern web applications.

11 lines 444 B
/** * Blocks network requests to specified domains by overriding XMLHttpRequest, * fetch and navigator.sendBeacon. * @param blockedHosts Array of domain strings to block */ export declare const blockTrackingRequests: (blockedHosts: string[]) => void; /** * Restores the original XMLHttpRequest, fetch and sendBeacon implementations */ export declare const restoreOriginalRequests: () => void; //# sourceMappingURL=request-blocker.d.ts.map