Blacklist is not enforced |
||
Issue descriptionChrome Version: 58.0.3029.83 (Official build) OS: Android 7.1 NDE49F What steps will reproduce the problem? (1) Define URLBlacklist=* and URLWhitelist *bbc.co.uk What is the expected result? Only BBC website is accessible, other URLs are blocked. What happens instead? Any URL is accessible
,
Jun 13 2017
Also, make sure you set the black- and whitelist as a list of strings. You can do that either by setting a String array containing "*", or a single String containing a JSON serialization of the list, i.e. "[\"*\"]".
,
Jun 13 2017
>> Also, make sure you set the black- and whitelist as a list of strings. They were set as a part of app restrictions, so that should not be a concern.
,
Jun 13 2017
I am assuming URLBlacklist format should be different. Not it is URLBlacklist=*
,
Jun 13 2017
What mechanism/API do you use to set app restrictions?
,
Jun 13 2017
I was using DPC > DPM.setApplicationRestrictions() https://goo.gl/CncU5I Ex: http://enterprise.google.com/android/experience
,
Jul 5 2017
Turns out that was incorrect format I was setting. That's that config that does work (tested on a device managed by http://enterprise.google.com/android/experience) blacklist: ["*"] whitelist: ["chrome://*", "bbc.co.uk"] This will only allow bbc.co.uk (which does redirect to www.bbc.co.uk) and all chrome://* internal URLs. Note: ["*"] blacklist does in fact block all chrome://* URLs
,
Jul 5 2017
,
Jul 5 2017
Archiving the result of an offline discussion: If you translate policies from JSON to an Android Bundle, the JSON value should be ["*"]. Also, the asterisk only works as a full wildcard -- subdomains are matched by default (and you can prepend a period to _not_ match them).
,
Jul 5 2017
Ah, yes. Didn't see your comment :) |
||
►
Sign in to add a comment |
||
Comment 1 by bauerb@chromium.org
, Jun 13 2017