-
Notifications
You must be signed in to change notification settings - Fork 81
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
Unable to set-cookie with ; #3178
Comments
With reload:
|
For sake of convenience I think I will add detection of special characters in cookie name/value and encode with |
Which is already mentioned in Wiki :
However:
Seems like a bug / unexpected behavior, because according to Wiki - the Also related : |
Right, I just tested the changes to automatically encode if needed and a reload was necessary for the cookie notice to go away. |
Does this fix the option |
Yes, with the change, your original filter works, no need to encode as pointed out by @gwarser. |
Doesn’t work as expected with uBlock Origin 1.56.1rc5 Firefox. Instead of
It set
and this will make the filter failing. |
As per RFC 6265 the characters |
As per RFC 6265 the characters ", should be encoded but apparently browsers don't care. Remove them from the set of characters which presence trigger encoding. Related feedback: uBlockOrigin/uBlock-issues#3178 (comment)
Given you are already editing the this part still needs to be updated accordingly to the current issue, as now the scriptlet encodes automatically :
|
I'm using I tried to set srajagopalan.substack.com##+js(trusted-set-cookie, intro_popup_last_hidden_at, $currentDate$) but it returns When I use srajagopalan.substack.com##+js(trusted-set-cookie, intro_popup_last_hidden_at, $currentISODate$) it returns literal string Would it be possible to have a vararg to determine when to encode the value? |
I will exclude |
Can’t set
Only a trusted set works
|
Because https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#attributes:
The gorhill/uBlock@b4d8750: |
Related feedback: uBlockOrigin/uBlock-issues#3178 (comment)
On one hand, from the link you provided, But on the other hand, what I've actually observed, is that both Firefox and Chromium still reject the
which would indicate that the both browsers treat and accept prefixes as valid regardless of their letter size. If that's true, then it seems that regex in the commit should be changed to case insensitive (flag By the way, looking at results in
Of course when encountering such sites, a cookie can still be set with |
Prerequisites
URL address of the web page
dach-shop24.de
Category
nuisance
Description
Trying to set-cookie to fix the cookie consent on dach-shop24.de for essential and external media only
Suggested rule:
set-cookie stops on essenziell" in ignores the rest of the filter rule.
Other extensions used
N/A
Screenshot(s)
N/A
Configuration
N/A
The text was updated successfully, but these errors were encountered: