Repository navigation
NEMAR: approve app.nemar.org as an origin - #752
Merged
Merged
Conversation
A signed-in reader's nemar.org pages are served from app.nemar.org, where the widget was refused. Adding it to cors_origins authorizes chat and the overview, CORS, and the notebook site's frame-ancestors. Tests added (581 pass in authorization, notebook site and assistants).
…e notebook site picks it up
2 tasks
2 of 3 tasks
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.
Closes #751
A signed-in reader's nemar.org pages (dashboard, settings, upload) are served from
app.nemar.orgwith the same widget, and the backend refused that origin: NEMAR'scors_originslisted onlynemar.org,www.nemar.organdtest.nemar.org.Changes
https://app.nemar.orgadded tosrc/assistants/nemar/config.yamlcors_origins: authorizes chat and the search overview from that origin (NEMAR only), adds it to the CORS allow list, and to the notebook site'sframe-ancestors(develop site on this merge, production at the next release).workers/osa-worker/index.js: the generated origin list (scripts/sync_worker_cors.py) gains the entry, so the sync workflow has nothing to push. The worker already admitted*.nemar.org, so no worker deploy is needed.Production (
app.nemar.org) gets this with the next OSA release tomain.Testing
test_nemar_app_host_is_authorized_for_nemar_only(authorized fornemar, nothed); notebook site embed origins include it.tests/test_api/test_authorization.py,tests/test_scripts/test_build_notebook_site.py,tests/test_assistants: 581 pass.Review (one Sonnet reviewer)
No Critical or Important findings; every consumer of
cors_originswas checked (CORS setup, origin authorization, notebookframe-ancestors, worker), and nothing else keys on page origin.Fixed:
Rejected: