Commit graph

5 commits

Author SHA1 Message Date
nuthalapativarun
dace4a7efc
fix: add CORS preflight handler and ACAO header for embed config endpoint (#403)
* fix: add CORS preflight handler and ACAO header for embed config endpoint

The GET /public/embed/config/{token} endpoint is fetched by external
websites (third-party embed sites). The global CORSMiddleware only covers
first-party origins, so external origins received no Access-Control-Allow-
Origin header, causing browser preflight failures.

Add an OPTIONS /config/{token} handler that validates the origin against the
token's allowed_domains list and returns the appropriate CORS headers.
Also inject Access-Control-Allow-Origin into the GET response via FastAPI's
response parameter so the actual request succeeds cross-origin.

Closes #383

* fix: complete public embed CORS handling

---------

Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
2026-06-03 21:27:44 +05:30
Abhishek Kumar
6ccc6492ee feat: allow turn credentials fetching from embed agent 2026-02-04 13:52:44 +05:30
Abhishek
a7bf64a02b
feat: add llm models in Dograh (#64) 2025-11-25 17:11:04 +05:30
Abhishek
ed3ceaf5ad
feat: allow www domain for embedded websites (#60) 2025-11-21 22:11:46 +05:30
Abhishek
99a768f291
feat: enable workflows to be embedded in websites as a script tag (#47)
* feat: add deployment configuration options

* Simplify EmbedDialog

* Add options for inline vs floating embedding of agent
2025-11-15 17:32:37 +05:30