Repository navigation
Load the OSA chat widget from demo.osc.earth - #111
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsis the project's custom domain. It serves the same file: same sha256, sameAccess-Control-Allow-Origin: *, which thecrossorigin="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.