From fc468683930bf2e402fd5f46869c2401365623ad Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Thu, 27 Nov 2025 22:20:17 -0800 Subject: [PATCH] quick follow-up to #2783: - the /crawlconfigs/{cid}/public/pagesSearch public endpoint also needs a corresponding CORS OPTIONS endpoint to allow embedding externally --- backend/btrixcloud/pages.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/btrixcloud/pages.py b/backend/btrixcloud/pages.py index a9c802df3a..cfcda733e7 100644 --- a/backend/btrixcloud/pages.py +++ b/backend/btrixcloud/pages.py @@ -1434,6 +1434,11 @@ async def get_public_collection_pages_list( tags=["pages", "collections"], response_model=EmptyResponse, ) + @app.options( + "/orgs/{oid}/crawlconfigs/{cid}/public/pagesSearch", + tags=["pages", "crawlconfigs"], + response_model=EmptyResponse, + ) async def get_replay_preflight(response: Response): response.headers["Access-Control-Allow-Methods"] = "GET, HEAD, OPTIONS" response.headers["Access-Control-Allow-Origin"] = "*"