The one-liner node.js proxy middleware for connect, express, next.js and more
92
Pending
Does it follow best practices?
Impact
92%
1.24xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses http-proxy-middleware's response interception capabilities to handle cookie domain attributes. The focus is on proper usage of responseInterceptor, selfHandleResponse option, and Set-Cookie header manipulation.",
"type": "weighted_checklist",
"checklist": [
{
"name": "createProxyMiddleware usage",
"description": "Uses the createProxyMiddleware function from http-proxy-middleware to create the proxy middleware",
"max_score": 10
},
{
"name": "target configuration",
"description": "Configures the target option correctly to specify the backend server URL",
"max_score": 5
},
{
"name": "selfHandleResponse option",
"description": "Sets selfHandleResponse: true in the options to enable manual response handling, which is required for using responseInterceptor",
"max_score": 15
},
{
"name": "responseInterceptor usage",
"description": "Uses the responseInterceptor function from http-proxy-middleware in the on.proxyRes event handler to intercept and modify the response",
"max_score": 25
},
{
"name": "on.proxyRes handler",
"description": "Correctly configures the on.proxyRes event handler to process responses from the backend server",
"max_score": 10
},
{
"name": "Set-Cookie header access",
"description": "Accesses the Set-Cookie header(s) from proxyRes.headers['set-cookie'] to read the cookies that need to be modified",
"max_score": 10
},
{
"name": "Domain attribute removal",
"description": "Removes Domain= attributes from cookie strings using string manipulation (e.g., regex replacement or string methods)",
"max_score": 15
},
{
"name": "Multiple cookie handling",
"description": "Handles both single Set-Cookie header (string) and multiple Set-Cookie headers (array) correctly",
"max_score": 10
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10