Files
actual/docs/troubleshooting/shared-array-buffer.md
Jed Fox 5d433c617e Reorganize page URLs to match the sidebar (#185)
Principles:

- lowercase URLs only
- kebab-case
- generally match sidebar structure
2023-06-12 15:20:06 -04:00

16 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Enabling SharedArrayBuffer Access
Actual requires access to a web technology called [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) in order to function. Because of security vulnerabilities in modern CPUs, this feature is disabled until certain conditions are met. Actual will not be able to run unless your server meets these conditions.
## HTTPS
Actual must be served over HTTPS for `SharedArrayBuffer` to be enabled. If youre using a cloud provider, this will usually be done for you. See [Activating HTTPS](../config/https.md) for more information.
## HTTP Headers
In addition to the HTTPS requirement, the `Cross-Origin-Embedder-Policy` and `Cross-Origin-Opener-Policy` headers must be set to `require-corp` and `same-origin` respectively. If youre using the default `actual-server` package as your server, you dont have to worry about this (the headers will always be enabled). If youre using a different server, youll need to make sure these headers are set.
## Supported Browser
The browser you use to access the server must also support `SharedArrayBuffer`. Recent versions of Chrome, Firefox, Safari, and Edge all support this feature. Check out the website [“Can I Use?”](https://caniuse.com/sharedarraybuffer) for a detailed breakdown of which browser versions support the feature.