cg-dot / vertexai-cf-workers

Vertex AI (GCP) Claude Proxy via Cloudflare workers
627 stars 99 forks source link

fix cors preflight handling and api key check order. #1

Closed MurphyLo closed 4 months ago

MurphyLo commented 4 months ago

move cors headers setup and options request handling before the api key check. This ensures proper handling of preflight requests without requiring authentication, avoiding the 401 response that was previously sent for preflight requests.

cg-dot commented 4 months ago

Merged, thanks @MurphyLo!