-
Notifications
You must be signed in to change notification settings - Fork 45
changes for v1.1.0 #27
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: &title Changelog | ||
description: &description Changelog for the WebContainers API library | ||
head: | ||
- ['meta', {property: 'og:title', content: *title}] | ||
- ['meta', {name: 'twitter:title', content: *title}] | ||
- ['meta', {name: 'twitter:description', content: *description}] | ||
|
||
--- | ||
|
||
# Changelog | ||
|
||
## 1.1.0 | ||
|
||
* The value of the [`Cross-Origin-Embedder-Policy`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy) header | ||
can be changed now with `BootOptions#coep`. | ||
jrvidal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* The name of the working directory can be specified through `BootOptions#workdirName`. | ||
* The default value of the `PATH` environment variable is exposed in `WebContainer#path`. | ||
* The full path of the working directory is exposed in `WebContainer#workdir`. | ||
Comment on lines
+16
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ head: | |
|
||
This guide provides an overview on how to configure COOP/COEP headers, including hosting platform configuration. | ||
|
||
WebContainers require that your page, even in development, be served with these two headers: | ||
WebContainers require that your page, even in development, is served with these two headers: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch, thanks! |
||
|
||
```yaml | ||
Cross-Origin-Embedder-Policy: require-corp | ||
|
@@ -21,6 +21,14 @@ Cross-Origin-Opener-Policy: same-origin | |
|
||
These headers are needed because WebContainer _requires_ SharedArrayBuffer, which, in turn, requires your website to be cross-origin isolated. | ||
|
||
Some browsers support a different mode for cross-origin isolation: [`credentialless`](https://caniuse.com/mdn-http_headers_cross-origin-embedder-policy_credentialless). If you wish to serve your content in this way, set your headers instead to: | ||
```yaml | ||
Cross-Origin-Embedder-Policy: credentialless | ||
Cross-Origin-Opener-Policy: same-origin | ||
``` | ||
and make sure to boot your WebContainer specifying [`coep: 'credentialless'`](/api). | ||
|
||
|
||
::: info Deep Dive: cross-origin isolation | ||
Here are a few helpful resources if you'd like to learn more about these topics: | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐ This changes the folder name visible in the terminal from
~/webcontainersio-98a7w9
or whatever to simply~/demo
.(EDIT: nevermind, had to revert)