New doc supporting CORS, gRCP, and general client integration

This commit is contained in:
2025-10-30 22:57:38 -07:00
parent 9a43af27ad
commit 52734efdec
7 changed files with 2247 additions and 0 deletions
+29
View File
@@ -66,3 +66,32 @@ data:
port: 8081
path: "/health"
interval: 30
# CORS (Cross-Origin Resource Sharing) configuration
# Only needed if web browsers will access the REST API
# For backend-only services using gRPC, CORS is not required
cors:
# Whitelist of allowed origins - wildcards (*) are NOT supported
# Leave empty if you don't have web browser clients
allowed_origins: []
# If you have a web frontend, add its domain(s) here:
# allowed_origins:
# - "https://app.example.com"
# - "https://dashboard.example.com"
# For local development:
# allowed_origins:
# - "http://localhost:3000"
# - "http://localhost:8080"
allowed_methods:
- "GET"
- "POST"
- "OPTIONS"
- "DELETE"
allowed_headers:
- "Content-Type"
- "Authorization"
allow_credentials: false
max_age: 3600