cg-dot / vertexai-cf-workers

Vertex AI (GCP) Claude Proxy via Cloudflare workers
617 stars 96 forks source link

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

Closed MurphyLo closed 3 months ago

MurphyLo commented 3 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 3 months ago

Merged, thanks @MurphyLo!