XR support in preview frame
Closed this issue · 0 comments
a-type commented
Tell us how you think we can improve Sandpack
Packages affected
- sandpack-client
- sandpack-react
What is this feature?
Add the xr-spatial-tracking
value to the allow
attribute in the Sandpack preview iframe to allow development of XR projects using Sandpack.
How would your idea work?
Adding the proper permissions policy would allow users to develop and test XR applications in Sandpack environments, provided the environment is hosted on an https
origin.
Do you have any examples of how you would like to see us implement it?
The permissions policy xr-spatial-tracking
could be included in the internal allow
attribute value present in Sandpack client setup.
Or, an option could be exposed to the user to customize this attribute themselves.
Notes
The required change is ready on a fork here if desired.