Skip to content

Load the OSA chat widget from demo.osc.earth - #111

Merged
VisLab merged 1 commit into
mainfrom
widget-from-demo-osc-earth
Oct 27, 2026
Merged

VisLab merged 1 commit into
mainfrom
widget-from-demo-osc-earth

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Several HED sites load the OSA chat widget from https://osa-demo.pages.dev/osa-chat-widget.js.

That is the Cloudflare Pages project's own address. It belongs to the account hosting the project, so it stops working when OSA moves to the SCCN Cloudflare account. https://demo.osc.earth/osa-chat-widget.js is the project's custom domain. It serves the same file: same sha256, same Access-Control-Allow-Origin: *, which the crossorigin="anonymous" attribute needs.

This changes only the script URL (and the comment naming the service). The widget configuration is unchanged, and the widget still calls widget.osc.earth/osa, which allows this site's origin.

The same change is open in the other HED repositories that embed the widget: hed-resources, hed-schemas, hed-server, hed-specification, hed-standard.github.io and table-remodeler. hed-python and hed-task already use demo.osc.earth.

osa-demo.pages.dev is the Cloudflare Pages project's own address, which
belongs to the Cloudflare account hosting it and stops working when OSA
moves to the SCCN account. demo.osc.earth is the project's custom domain
and serves the same file (same sha256, and the same
Access-Control-Allow-Origin: * that crossorigin="anonymous" needs).
@VisLab
VisLab merged commit bc607c6 into main Oct 27, 2026
8 checks passed
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.

2 participants