You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platform/webcontainers/browser-config.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,21 @@ In some browsers, this feature is blocked by “third-party cookie” or “thir
18
18
19
19
## Chrome: enabling Service Workers {#chrome-service-workers}
20
20
21
-
If you use the “Block Third Party Cookies” option in Chrome, you will need to add exceptions for StackBlitz projects.
21
+
If you use the “Block Third Party Cookies” option in Chrome and you have "Third-party Storage Partitioning" disabled, you will need to either:
22
+
23
+
- Enable Storage partitioning
24
+
- Or add exceptions for StackBlitz projects.
25
+
26
+
The first option should be preferred because this is a [new feature][GOOGLE_SP] of Chrome which improves your privacy when you visit websites that embed third-party sites.
27
+
28
+
### Enable Storage partitioning
29
+
30
+
Visit `chrome://flags/#third-party-storage-partitioning` and choose `Enabled` in the drop down. In recent version of Chrome, choosing the `Default` value should work too.
31
+
32
+
<imgalt="Chrome flags showing the third-party Storage Partitioning option enabled."src="./assets/chrome-enable-sp.png"width="800" />
33
+
34
+
35
+
### Or add exceptions for Stackblitz
22
36
23
37
To allow all StackBlitz projects to use Service Workers, go to your browser’s cookie preferences, and add exceptions for the following URL patterns:
24
38
@@ -62,7 +76,7 @@ You can work around this issue in a couple ways:
62
76
1. Use the “Strict” mode instead of “Custom” mode. It’s important to note that it's slightly more permissive than “Custom” mode with very strict options. If this is not something you'd like to allow, you can...
63
77
2. Add exceptions to cookie blocking for the domains used to run StackBlitz projects.
64
78
65
-
To do so, visit `about:preferences#privacy` to check what your current settings look like.
79
+
To do so, visit `about:preferences#privacy` to check what your current settings look like.
66
80
67
81
<img
68
82
alt="The Firefox “Privacy & Security” settings page showing that Enhanced Tracking Protection is set to “Custom”, and to “Cookies: All cross-site cookies (may cause websites to break)”."
0 commit comments