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
The CSP is a bit more complicated. For example, the CSP for https://example.com/v1/chat/completions and https://example.com/ui will be completely different.
This is an UNSAFE/bad example of a CSP for LiteLLM:
The Feature
LiteLLM should add the following headers:
content-security-policy
cross-origin-resource-policy
cross-origin-opener-policy
cross-origin-embedder-policy
x-frame-options
x-content-type-options
access-control-allow-origin
IMO should use
PROXY_BASE_URL
as a default to calculate these headers.Reasonable defaults for all requests/paths would be (assuming
PROXY_BASE_URL="https://example.com/"
:The CSP is a bit more complicated. For example, the CSP for
https://example.com/v1/chat/completions
andhttps://example.com/ui
will be completely different.This is an UNSAFE/bad example of a CSP for LiteLLM:
Motivation, pitch
Security hardening of LiteLLM is always a good idea imo. =)
Twitter / LinkedIn details
https://twitter.com/DaveManouchehri
The text was updated successfully, but these errors were encountered: