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

Open-WebUI security headers are not passed through #67

Open
jmiedzinski opened this issue Apr 1, 2025 · 3 comments
Open

Open-WebUI security headers are not passed through #67

jmiedzinski opened this issue Apr 1, 2025 · 3 comments

Comments

@jmiedzinski
Copy link

I noticed that security headers that can be enabled in Open-WebUI configuration by this variable are not passed by MCP-Bridge to inference endpoints. For me it's an issue as I rely on it in next proxy hop.

@jmiedzinski
Copy link
Author

jmiedzinski commented Apr 1, 2025

Upon further analysis I found that these headers are not passed for:

@router.get("/models")
async def models():
    """List models"""
    response = await client.get("/models")
    return response.json()

in endpoints.py
I managed to fix it temporarily by mapping necessary headers from request. Other endpoints seems to pass headers properly.

@SecretiveShell
Copy link
Owner

if you want to submit a pr for this then I am happy to review/merge.

@jmiedzinski
Copy link
Author

sure, here you have it #68

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

2 participants