Skip to content

fix SharedArrayBuffer undefined problem#4001

Open
Indhiraraj wants to merge 1 commit intoprocessing:developfrom
Indhiraraj:bugfix/indhiraraj/sharedArrayBuffer
Open

fix SharedArrayBuffer undefined problem#4001
Indhiraraj wants to merge 1 commit intoprocessing:developfrom
Indhiraraj:bugfix/indhiraraj/sharedArrayBuffer

Conversation

@Indhiraraj
Copy link

@Indhiraraj Indhiraraj commented Mar 17, 2026

Issue:

Fixes #2094

###Changes:
image

  1. Added Security Headers:
    Implemented 'Cross-Origin-Embedder-Policy': 'require-corp' and 'Cross-Origin-Opener-Policy': 'same-origin' in server.js to enhance cross-origin security and enable origin isolation.
  2. Configured Proxy:
    Created a proxy middleware in server.js to handle requests to the preview server, enabling communication despite the strict cross-origin policies.
  3. New Environment Variable:
    Introduced a new environment variable PREVIEW_SERVER_URL (e.g., localhost:8002) that points to the preview server which is used to proxy from server.js.
  4. Updated Environment Example File:
    Added the new PREVIEW_SERVER_URL variable to the .env.example file to maintain consistency and support for future setups.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

@Indhiraraj Indhiraraj force-pushed the bugfix/indhiraraj/sharedArrayBuffer branch from 4e103b0 to 246883b Compare March 17, 2026 17:08
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

Successfully merging this pull request may close these issues.

Cannot create a SharedArrayBuffer

1 participant