mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-25 16:15:55 +03:00
[GH-ISSUE #1862] Delete specific cookie in scripting #1854
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1854
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Agrailag on GitHub (Nov 29, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1862
Description
Hello, not very familiar with js, but in snippets don't find any example - how i can remove some specific cookie in Cookie header?
delete request.headers["Cookie"] = "JSESSIONID";Something like this delete whole header.
@NghiaTranUIT commented on GitHub (Nov 30, 2023):
Hey @Agrailag
request.headers["Cookie"]is just a string, so you can write simple JS Logic to remove a part of it.@Agrailag commented on GitHub (Nov 30, 2023):
@NghiaTranUIT hey, thanks for answer. But in this case
delete newCookies["_delighted_web"]i suppose it wont delete cookie just by key, right?@NghiaTranUIT commented on GitHub (Dec 1, 2023):
it deletes a part key-value of your cookie. You can use JS Playground on the Internet and test it.