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

Single-file copy #570

Closed
hello-smile6 opened this issue Dec 14, 2021 · 7 comments
Closed

Single-file copy #570

hello-smile6 opened this issue Dec 14, 2021 · 7 comments

Comments

@hello-smile6
Copy link
Contributor

Is there a single-file version of v86 (base64-encoded WASM file as part of the binary) that would work from a file:/// context?

@copy
Copy link
Owner

copy commented Dec 14, 2021

Not yet, but contributions are welcome.

@hello-smile6
Copy link
Contributor Author

Not yet, but contributions are welcome.

Could you simply make libv86 accept a URL rather than a path for the WASM file and send an Access-Control-Allow-Origin: * header on the https://copy.sh/v86 v86.wasm file?

@copy
Copy link
Owner

copy commented Dec 14, 2021

Could you simply make libv86 accept a URL rather than a path for the WASM file and send an Access-Control-Allow-Origin: * header on the https://copy.sh/v86 v86.wasm file?

I have no plans of adding CORS headers to my website, so no.

@hello-smile6
Copy link
Contributor Author

Not even just for the WASM file? Also, personal-server.9pfs.repl.co/v86.wasm

@copy
Copy link
Owner

copy commented Dec 14, 2021

You can pass wasm_path: "http://personal-server.9pfs.repl.co/v86.wasm" to use a self-hosted v86.wasm.

@hello-smile6
Copy link
Contributor Author

You can pass wasm_path: "http://personal-server.9pfs.repl.co/v86.wasm" to use a self-hosted v86.wasm.

Okay.

@copy copy closed this as completed Dec 14, 2021
@hello-smile6
Copy link
Contributor Author

Could I have a working example?

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

No branches or pull requests

2 participants