Skip to content

Response header filtering does not work (set-cookie) #2552

@ngoclong19

Description

@ngoclong19

Prerequisites

  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • using a new, unmodified browser profile.

Description

I want to block a specific cookie on medium.com.
So, I try to delete the specific cookie in Firefox, then use uBlock to prevent the server from setting this cookie.
This cookie has attribute HttpOnly.

I could use the feature block all cookies for a website in Firefox.
But it seems that some website hosted by Medium will break with this setting.
I don't remember which website is broken though.

A specific URL where the issue occurs.

https://medium.com

Steps to Reproduce

  1. Open the URL
  2. Add this filter rule
    medium.com##^responseheader(set-cookie)
  3. Clear all cookie for medium.com
  4. Refresh the page.

Expected behavior

The response from server does not have a set-cookie header, no cookie will be set.

Actual behavior

The set-cookie header still exists, and cookie will be set.

Configuration

Details
uBlock Origin: 1.47.4
Firefox: 111
filterset (summary):
  network: 0
  cosmetic: 0
  scriptlet: 0
  html: 0
listset (total-discarded, last-updated):
  removed:
    ublock-filters: null
    ublock-badware: null
    ublock-privacy: null
    ublock-abuse: null
    ublock-unbreak: null
    ublock-quick-fixes: null
    easylist: null
    easyprivacy: null
    urlhaus-1: null
    plowe-0: null
    VIE-1: null
  default:
    user-filters: 1-0, never
filterset (user): [array of 1 redacted]
modifiedUserSettings: [none]
modifiedHiddenSettings: [none]
supportStats:
  allReadyAfter: 562 ms (selfie)
  maxAssetCacheWait: 232 ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions