Skip to content

[wasm] Use cross origin policy headers - #62016

Merged
maraf merged 2 commits into
dotnet:mainfrom
maraf:CrossOriginPolicy
Nov 29, 2021
Merged

[wasm] Use cross origin policy headers#62016
maraf merged 2 commits into
dotnet:mainfrom
maraf:CrossOriginPolicy

Conversation

@maraf

@marafmaraf commented Nov 24, 2021

Copy link
Copy Markdown
Member

Use xharness arg --web-server-use-cop to set cross origin policy headers

Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin

In Chrome 92 SharedArrayBuffer was disabled due to a vulnerability. To enable it site must be cross-origin isolated (by COEP and COOP headers). More info at https://developer.chrome.com/blog/enabling-shared-array-buffer/.

Fixes#61945

@ghost

Copy link
Copy Markdown

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Use xharness arg --web-server-use-cop to set cross origin policy headers

Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin

Fixes #61945

Author:maraf
Assignees:-
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript

Milestone:7.0.0

@radical

Copy link
Copy Markdown
Member

@maraf could you add a reasoning for the change? @kg had pointed to https://developer.chrome.com/blog/enabling-shared-array-buffer/ , and that would be useful to add to the PR description too.

@maraf

Copy link
Copy Markdown
MemberAuthor

There is a misalignment between Xharness and Arcade versions.
This will be solved by #61668.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[wasm] JS Interop tests failing with latest chrome - JavaScript host object 'SharedArrayBuffer' not found

4 participants

@maraf@radical@pavelsavara@premun