Blocking cookie setting/retrieving by modifying headers
问题 I'm trying to make a Google Chrome extension that analyzes cookies before they're set/retrieved by websites and, if they don't meet certain requirements, stops the operation. To start, I'm trying to just block cookie setting entirely. After trying (and failing) to override their getter and setter, I was recommended to try and modify headers and their Set-Cookie elements instead. If anyone is interested in the previous question, it's here. The extension I came up with only has the following