Repository navigation
docs(osa): load the widget from demo.osc.earth, not osa-demo.pages.dev - #44
Merged
Merged
Conversation
osa-demo.pages.dev is the Pages project's account-scoped address and stops working when OSA moves Cloudflare accounts; the widget page now says so and points embeds at demo.osc.earth. The environment table and the always-authorized origins drop the pages.dev names (OSA #626 removed them from the allowlists). The cors_origins examples no longer suggest https://*.pages.dev, which would authorize every Pages site. The README names docs.osc.earth instead of the docs project's pages.dev address. mkdocs build passes with no warnings on these pages.
… names Review follow-up: the trimmed environment table read as if those hosts fell through to the default; the widget maps them as before, and the demo redirects them to the custom domains first.
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.
osa-demo.pages.devis the Cloudflare Pages project's own address. It belongs to the account that hosts the project, so it stops working when OSA moves to the SCCN Cloudflare account. The docs said it "is not going away".Changes
deployment/widget.mdhttps://demo.osc.earth/osa-chat-widget.js, which serves the same file.demo.osc.earthand*-demo.osc.earth.demo.osc.earth,<branch>-demo.osc.earth); Drop dead osa-demo.pages.dev origin allowlist entries osa#626 removedosa-demo.pages.devfrom the allowlists.pages.devaddress.registry/schema-reference.md,troubleshooting.md: thecors_originsexamples no longer suggesthttps://*.pages.devorhttps://*.vercel.app, which would authorize every site on those platforms. They use a project-scoped wildcard, and the common-mistakes list and tip say why.README.md: the docs deploy to theosc-docsPages project, served at docs.osc.earth.Tested
mkdocs buildsucceeds, with no warnings on these pages.--strictstops only on an existing warning in the OSCAR submodule (oscar/examples/index.mdlinks../docs/evidence.md).Review
One Sonnet pass, checking each claim against OSA's
develop._is_authorized_origin.docs/osa/points embedders topages.devorworkers.dev.pages.devnames, which the demo redirects before the widget loads.