Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here and here.
HTTP Server Authorization Whitelist
Since 6.8 you can configure JxBrowser with HTTP server authorization whitelist that represents a string with comma/semicolon separated list of URLs. For example:
Browser browser = new Browser(); BrowserContext browserContext = browser.getContext(); NetworkService networkService = browserContext.getNetworkService(); networkService.setServerWhiteList("*google.com,*example.com,*baz");
HTTP Network Delegate Whitelist
To configure JxBrowser with HTTP network delegate whitelist you can use the approach described below:
Browser browser = new Browser(); BrowserContext browserContext = browser.getContext(); NetworkService networkService = browserContext.getNetworkService(); networkService.setDelegateWhiteList("*google.com,*example.com,*baz");
This functionality is available since 6.8.