You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the trafficsplit plugin to split traffic, when my front-end sends a cookie with the value "OnlyHttp;orderNo=F30", it cannot match the normal F30 upstream. When I debugged, I found that apisix parsed this cookie into the key OnlyHttp;orderNo, but the key should actually be orderNo.
HttpOnly should not appear in the Cookie request header sent by the client.
Instead, it belongs in the Set-Cookie response header.
In the Cookie request header, only the actual key-value pairs should be included.
Current Behavior
When I use the trafficsplit plugin to split traffic, when my front-end sends a cookie with the value "OnlyHttp;orderNo=F30", it cannot match the normal F30 upstream. When I debugged, I found that apisix parsed this cookie into the key OnlyHttp;orderNo, but the key should actually be orderNo.
Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
craete route
{
"update_time": 1732544554,
"create_time": 1732539917,
"hosts": [
"a.test.com"
],
"upstream_id": "734215018329804800",
"priority": 1,
"uri": "/e",
"status": 1,
"plugins": {
"client-control": {
"max_body_size": 4194304
},
"traffic-split": {
"rules": [
{
"match": [
{
"vars": [
[
"cookie_orderNo",
"==",
"F30"
]
]
}
],
"weighted_upstreams": [
{
"weight": 1,
"upstream_id": "734068621429313536"
}
]
}
]
}
},
"id": "734215018329804800"
}
Send with cookie "HttpOnly;orderNo=F30"
Environment
The text was updated successfully, but these errors were encountered: