how can I add to firefox background js extension function modifyHeaders(e) { const…
Private research annotation
Sign in to add a private research label or note.
Jump to turn (7)
- 1how can I add to firefox background js extension function modifyHeaders(e) { con
- 2isn t possible just use the regexp ?
- 3I think we can reuse base logic can U integrate it ? function modifyHeaders(e) {
- 4so I can just add this if (header.name.toLowerCase() === “accept-ranges” && head
- 5is this compulsory ? return true; // Keep the header if none of the conditions a
- 6so the full logic to add is if (header.name.toLowerCase() === “accept-ranges” &&
- 7is this if (blockedHeaderFound) { blockedHeaderFound.name = ""; replaceOrAddHead
- User
how can I add to firefox background js extension function modifyHeaders(e) { const blockedHeader = /(base-uri|report-to|report-uri|sandbox|x-frame-options|x-frame-options|x-xss-protection|public-key-pins-report-only|upgrade-insecure-requests|form-action|base-uri|block-all-mixed-content|frame-ancestors)/i; also logic to block Accept-Ranges: only when its values is none
- Assistant