Skip to content

Added support for secure-context headers in ran.#35

Open
ltomes wants to merge 1 commit intom3ng9i:masterfrom
ltomes:add-secure-context-support
Open

Added support for secure-context headers in ran.#35
ltomes wants to merge 1 commit intom3ng9i:masterfrom
ltomes:add-secure-context-support

Conversation

@ltomes
Copy link

@ltomes ltomes commented Mar 11, 2022

I am doing some work with webAssembly that requires SharedArrayBuffer on the client. This feature is restricted to origins that have particular secure-context headers set. I believe this use case is distinct enough from CORS that these headers should not be added to that flag.

Why is this required:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/Planned_changes

I have not fully tested this code/I'm currently on a windows machine that is not setup for compiling go code, but these changes seem straight forward enough.

Edit: Had to make this PR twice/something was off with GPG signing.

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.

1 participant