Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to delete a header in a custom function #242

Closed
ttttmr opened this issue Mar 28, 2023 · 0 comments
Closed

[Question] How to delete a header in a custom function #242

ttttmr opened this issue Mar 28, 2023 · 0 comments

Comments

@ttttmr
Copy link

ttttmr commented Mar 28, 2023

The value of header set to _header_editor_remove_ doesn't seem to work.

I tried to use delete val[i], but the browser threw an error

for(let i=0;i<val.length;i++){
    if(xx){
        delete val[i]
    }
}
Error in event handler: TypeError: Error in invocation of webRequestInternal.eventHandled(string eventName, string subEventName, string requestId, integer webViewInstanceId, optional webRequest.BlockingResponse response): Error at parameter 'response': Error at property 'requestHeaders': Error at index 9: Invalid type: expected object, found undefined.
    at subEventCallback (extensions::webRequestEvent:107:28)
@ttttmr ttttmr closed this as completed Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant