-
Notifications
You must be signed in to change notification settings - Fork 347
Closed
Description
BUG
When trying to define a custom function to modify headers as described here, I can't save the rule. Header name cannot be empty shows, despite there being no header name field. I assume the code is supposed to always receive all headers and therefore the rule doesn't need to include a specific header name, but the UI prevents this.
Environment
- Extension version: Header Editor 5.2.4 manifest v2
- Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0
Rules and test address
- Rule type: Modify response header
- Execution type: Custom function
- Code:
for (const a in val) { if (val[a].name.toLowerCase() === 'user-agent') { val[a].value += ' HE/2.0.0'; break; } }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels