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

Serve sandbox document with secure context headers #532

Closed
chrispahm opened this issue Jan 26, 2023 · 2 comments
Closed

Serve sandbox document with secure context headers #532

chrispahm opened this issue Jan 26, 2023 · 2 comments

Comments

@chrispahm
Copy link

Is your feature request related to a problem? Please describe.
I'd like to use WebR (the statistical language R compiled to WASM, https://github.com/georgestagg/webR) in an Observable notebook. The JS landscape is still lacking a solid statistical framework (see following discussion → https://talk.observablehq.com/t/observable-for-research-advanced-statistics/4538/1), and this could enable more researchers and data scientists to work with Observable notebooks.
However, WebR makes use of SharedArrayBuffers, and therefore requires to be run in a secure context.

Describe the solution you'd like
If possible, the sandbox document would be served including the following headers:

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

Describe alternatives you've considered
Unfortunately, there seems to be no other way to get WebR to work (see following issue in the WebR repo r-wasm/webr#75).

Additional context
Notebook (Ambassador account): https://observablehq.com/d/147d41043e6a52f2
Slack Discussion (Ambassador channel): https://observable-community.slack.com/archives/C048DNSCNDP/p1674638959702439

@chrispahm chrispahm changed the title Allow service workers through secure context headers Serve sandbox document with secure context headers Jan 26, 2023
@chrispahm
Copy link
Author

closed in favor of #557

@mootari mootari closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2023
@neocarto
Copy link

neocarto commented Jul 7, 2023

Any news on this subject?

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

No branches or pull requests

3 participants