Project

General

Profile

Bug #52

Headers not updated on cached requests

Added by jahoti 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
07/16/2021
Due date:
% Done:

0%

Estimated time:

Description

When a page is loaded from the cache (e.g. after reloading), we don't (can't?) modify the headers. That means, for instance, reloading a page after whitelisting (perhaps even after blacklisting) it won't have any effect as far as CSP blocking is concerned.

History

#1

Updated by koszko 6 months ago

There seem to be some APIs for that. The one that reloads a tab while bypassing cache seems to be the most promising:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/reload

There's also one that can flush the entire cache:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browsingData

#2

Updated by jahoti 6 months ago

  • Status changed from New to Closed

Thanks for the API suggestions! It turns out the issue was indeed the same as you worked around earlier, and a minor adjustment of conditions fixes it. However, on a related note the handling of existing CSP headers needs additional sensitivity.

Also available in: Atom PDF