Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend trusted sources #1345

Merged
merged 1 commit into from
Dec 22, 2022
Merged

extend trusted sources #1345

merged 1 commit into from
Dec 22, 2022

Conversation

dragazo
Copy link

@dragazo dragazo commented Dec 19, 2022

Curriculum project links (like https://curriculum.netsblox.org/9-week/dc/plot-co2-vs-temp.nb) work by redirecting to editor with an extension that loads the project xml we store. But currently this prompts for trusted sources every time. This PR extends trusted sources to every subdomain of netsblox.org.

@gsteinLTU
Copy link
Member

I tested it (Devin doesn't have the new setup running locally yet) and it worked to allow *.netsblox.org extensions along with localhost (when running on localhost), but not other domains.

@gsteinLTU gsteinLTU linked an issue Dec 20, 2022 that may be closed by this pull request
@brollb
Copy link
Collaborator

brollb commented Dec 21, 2022

LGTM. However, I am not really convinced about the use case. @dragazo, why would you need an extension to load projects via URL? Why not use the existing URL parameters (eg, https://editor.netsblox.org/#open:https://raw.githubusercontent.com/NetsBlox/exercises/master/exercises/letter-frequency/parsons.xml)?

(Since this seems like it could be useful for other use cases as well, it should be fine to merge anyway.)

@dragazo dragazo merged commit eac7ca2 into master Dec 22, 2022
@dragazo dragazo deleted the trusted-sources-extend branch December 22, 2022 16:54
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.

Better domain handling of extensions (for VM and development)
3 participants