Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$badfilter does not work on a CSP filter #3371

Closed
ghost opened this issue Dec 26, 2017 · 3 comments
Closed

$badfilter does not work on a CSP filter #3371

ghost opened this issue Dec 26, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 26, 2017

STR

  1. Add @@*$csp=default-src 'self' * data: 'unsafe-inline' 'unsafe-eval',domain=investopedia.com and @@*$csp=default-src 'self' * data: 'unsafe-inline' 'unsafe-eval',domain=investopedia.com,badfilter to My Filters

  2. Keeping the logger open, browse to https://www.investopedia.com/

  3. Exception filter is applied even though $badfilter is present as per the logger -

Your settings

  • OS/version: Win 10 x64
  • Browser/version: Chrome 65
  • uBlock Origin version: 1.14.23.2
@ghost ghost closed this as completed Jan 19, 2018
@gorhill gorhill reopened this Jan 19, 2018
@uBlock-user
Copy link
Contributor

uBlock-user commented Feb 16, 2018

Actually $badfilter doesn't work on any CSP filter.

For example, Add

||example.com^$csp=script-src 'self'
||example.com^$csp=script-src 'self',badfilter

to My Filters and then browse to example.com, the CSP filter is still applied as per the logger.

@gorhill
Copy link
Owner

gorhill commented Feb 18, 2018

As a workaround for now, a specific exception filter is pretty much the equivalent of badfilter:

@@||example.com^$csp=script-src 'self'

@uBlock-user
Copy link
Contributor

uBlock-user commented Feb 18, 2018

Yeah, that will do for now, I hope you're able to patch this one soon though. Were you able to draw the cause behind this ?

@ghost ghost changed the title $badfilter not working on a CSP exception filter $badfilter does not work on a CSP filter Feb 28, 2018
hawkeye116477 added a commit to hawkeye116477/uBlock-for-firefox-legacy that referenced this issue Aug 14, 2020
Co-authored-by:  gorhill <585534+gorhill@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants