bricks-cloud / BricksLLM

🔒 Enterprise-grade API gateway that helps you monitor and impose cost or rate limits per API key. Get fine-grained access control and monitoring per user, application, or environment. Supports OpenAI, Azure OpenAI, Anthropic, vLLM, and open-source LLMs.
https://trybricks.ai/
MIT License
863 stars 60 forks source link

proxy: Implement CORS handler for XMLHttpRequest #46

Closed buczek closed 6 months ago

buczek commented 7 months ago

This commit introduces a middleware that adds CORS headers and handles CORS preflight requests. This enhancement allows the proxy to be utilized with XMLHttpRequest from a browser, enforcing the same-origin policy.

Fixes #45

spikelu2016 commented 6 months ago

Thanks for your contribution Donald!