uBlock/src/js/codemirror
Raymond Hill f876b68171
Add support for removal of response headers
The syntax to remove response header is a special case
of HTML filtering, whereas the response headers are
targeted, rather than the response body:

  example.com##^responseheader(header-name)

Where `header-name` is the name of the header to
remove, and must always be lowercase.

The removal of response headers can only be applied to
document resources, i.e. main- or sub-frames.

Only a limited set of headers can be targeted for
removal:

  location
  refresh
  report-to
  set-cookie

This limitation is to ensure that uBO never lowers the
security profile of web pages, i.e. we wouldn't want to
remove `content-security-policy`.

Given that the header removal occurs at onHeaderReceived
time, this new ability works for all browsers.

The motivation for this new filtering ability is instance
of website using a `refresh` header to redirect a visitor
to an undesirable destination after a few seconds.
2021-03-13 08:53:34 -05:00
..
search-thread.js Fine tune CodeMirror editor's search widget 2020-08-03 08:55:02 -04:00
search.js Fine tune visuals of CodeMirror's search feature 2020-08-04 10:14:38 -04:00
ubo-dynamic-filtering.js Bring back action/state highlighting in _"My rules"_ 2020-11-20 05:34:56 -05:00
ubo-static-filtering.js Add support for removal of response headers 2021-03-13 08:53:34 -05:00