Files
dify/api/extensions
GareArc 218ef6a447 feat(api): CORS posture for /openapi/v1 (Phase A.5)
OPENAPI_CORS_ALLOW_ORIGINS env var defaults to empty (same-origin only).
Operators expand for third-party integrations via comma-separated list.
Allowed headers: Authorization, Content-Type, X-CSRF-Token. Methods:
GET POST PATCH DELETE OPTIONS. Max-Age 600s. supports_credentials=True
so cookie-authed approve/deny work once Phase D moves them in.

Disallowed origins receive a normal 200 OPTIONS response without the
Access-Control-Allow-Origin header — flask-cors's standard behavior;
browser blocks the cross-origin request from the disallowed origin.

Plan: docs/superpowers/plans/2026-04-26-openapi-migration.md (in difyctl repo).
2026-04-26 23:30:27 -07:00
..
2026-04-16 08:50:02 +00:00
2026-04-16 08:50:02 +00:00
2025-10-21 11:26:58 +08:00
2025-10-21 11:26:58 +08:00
2025-10-21 11:26:58 +08:00
2026-04-16 08:50:02 +00:00
2026-04-16 02:21:04 +00:00