-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Labels
type: bugSomething isn't workingSomething isn't working
Description
Bug description
Gitpod self-hosted adds the "cross-origin-opener-policy: same-origin-allow-popups" header to workspaces, which breaks apps that use SharedArrayBuffer.
The header is added here:
gitpod/components/proxy/conf/Caddyfile
Lines 49 to 56 in aa2c51c
| # workspace security headers | |
| (workspace_security_headers) { | |
| header { | |
| # Disallow sharing the same browsing context when opened in a popup | |
| Cross-Origin-Opener-Policy same-origin-allow-popups | |
| } | |
| import security_headers | |
| } |
For some reason, this doesn't seem to affect gitpod.io
Steps to reproduce
- Open https://github.com/blueberrymuffin3/gitpod-secure-context-test in gitpod.io and a self-hosted instance of gitpod
- Tests pass for gitpod.io, but fail on self-hosted gitpod
Workspace affected
No response
Expected behavior
The test should pass on self-hosted Gitpod (i.e. window.SharedArrayBuffer should be defined).
Example repository
https://github.com/blueberrymuffin3/gitpod-secure-context-test
Anything else?
No response
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working