Skip to content

Gitpod self-hosted does not allow access to SharedArrayBuffer #11328

@blueberrymuffin3

Description

@blueberrymuffin3

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:

# 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

  1. Open https://github.com/blueberrymuffin3/gitpod-secure-context-test in gitpod.io and a self-hosted instance of gitpod
  2. 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

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions