From 8cdaa33cfba922c5c4cfd87caa6c6a0d493697bc Mon Sep 17 00:00:00 2001 From: Seyed Yahya Shirazi Date: Mon, 8 Jun 2026 11:40:12 -0700 Subject: [PATCH] Add BIDS RTD PR-preview origins to CORS (temporary) Allow the BIDS assistant widget to load on the ReadTheDocs PR preview builds for bids-standard/bids-specification#2442 and bids-standard/bids-website#847 so reviewers can try the widget before merge. These two origins are temporary and should be removed once both PRs merge. --- src/assistants/bids/config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/assistants/bids/config.yaml b/src/assistants/bids/config.yaml index d598088..17cb046 100644 --- a/src/assistants/bids/config.yaml +++ b/src/assistants/bids/config.yaml @@ -20,6 +20,12 @@ enable_page_context: true cors_origins: - https://bids.neuroimaging.io - https://bids-specification.readthedocs.io + # Temporary: ReadTheDocs PR preview builds, so reviewers can try the widget + # before merge. Remove once these PRs are merged: + # bids-standard/bids-specification#2442 (spec site) + # bids-standard/bids-website#847 (website) + - https://bids-specification--2442.org.readthedocs.build + - https://bids-website--847.org.readthedocs.build # Per-community OpenRouter API key (optional) openrouter_api_key_env_var: "OPENROUTER_API_KEY_BIDS"