Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions frontend/app/api/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ async function proxyRequest(request: NextRequest, params: { path: string[] }) {
}
}

// Explicitly forward Set-Cookie headers (entries() may omit them)
for (const cookie of response.headers.getSetCookie()) {
responseHeaders.append("set-cookie", cookie);
}

// For streaming responses, pass the body directly without buffering
if (response.body) {
return new NextResponse(response.body, {
Expand Down
3 changes: 2 additions & 1 deletion src/session_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ def create_jwt_token(self, user: User) -> str:
def verify_token(self, token: str) -> Optional[Dict[str, Any]]:
"""Verify JWT token and return user info"""
try:
raw = token.removeprefix("Bearer ")
payload = jwt.decode(
token,
raw,
self.public_key,
algorithms=[self.algorithm],
audience=["opensearch", "openrag"],
Expand Down
Loading