Handle nginx fronting

This commit is contained in:
Chiran Fernando 2025-04-02 21:11:39 +05:30
parent 9f5fc69fb6
commit 4c68d09dbc
2 changed files with 5 additions and 0 deletions

View file

@ -160,6 +160,7 @@ func addCORSHeaders(w http.ResponseWriter) {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Headers", "Authorization, Content-Type")
w.Header().Set("Access-Control-Allow-Methods", "GET, POST, OPTIONS")
w.Header().Set("X-Accel-Buffering", "no")
}
func isMCPPath(path string, cfg *config.Config) bool {