Skip to content

Add BIDS RTD PR-preview origins to CORS (temporary)#319

Merged
neuromechanist merged 1 commit into
developfrom
fix/bids-cors-rtd-previews
Jun 8, 2026
Merged

Add BIDS RTD PR-preview origins to CORS (temporary)#319
neuromechanist merged 1 commit into
developfrom
fix/bids-cors-rtd-previews

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Summary

Adds the ReadTheDocs PR-preview origins for the two BIDS widget PRs to the BIDS community cors_origins so reviewers can actually try the assistant on the preview builds:

The RTD preview hosts resolve to the production OSA worker (the widget's env-detection treats *.org.readthedocs.build as neither dev nor demo), so these origins are needed on prod for the preview pages to call the API.

Temporary

Both entries are clearly commented as temporary and should be removed once the two upstream PRs merge (the permanent bids.neuroimaging.io and bids-specification.readthedocs.io origins already cover the live sites).

Testing

  • CommunityConfig parses the updated YAML and both new origins pass the cors_origins validator.

Deploy note

CORS is built at FastAPI startup from each community config, so this needs a backend restart/redeploy to take effect on the environment serving the preview (production).

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.
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

⚠️ Worker Deployment Required

This PR modifies community CORS origins. Worker changes detected. After merging to main or develop, the workflow will automatically deploy the worker.

Manual deployment (if needed):

cd workers/osa-worker
wrangler deploy --env dev  # for develop branch
wrangler deploy            # for main branch

@neuromechanist neuromechanist merged commit aed73bb into develop Jun 8, 2026
7 checks passed
@neuromechanist neuromechanist deleted the fix/bids-cors-rtd-previews branch June 8, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant