Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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