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
rjkpa opened this Issue Dec 26, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@rjkpa
Copy link

rjkpa 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

@rjkpa rjkpa closed this Jan 19, 2018

@gorhill gorhill reopened this Jan 19, 2018

@uBlock-user

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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 ?

@rjkpa rjkpa changed the title $badfilter not working on a CSP exception filter $badfilter does not work on a CSP filter Feb 28, 2018

@gorhill gorhill closed this in cabb0d3 Oct 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.