webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

iFrame permissions for immersive session (WebXR)

Open marwie opened this issue 1 year ago • 3 comments

Hello,

when trying to access navigator.xr inside a stackblitz iFrame we currently get an exception because of missing permissions.

Would it be possible to allow xr-spatial-tracking to run WebXR applications on stackblitz?

Capto_Capture 2024-02-09_10-56-58_PM

marwie avatar Feb 09 '24 15:02 marwie

Hi @marwie 👋 . Thanks for reaching out. We've just pushed a change to add this to the allow list. Should be deployed in 20 minutes or so.

SamVerschueren avatar Feb 09 '24 16:02 SamVerschueren

Amazing - thank you very much @SamVerschueren While we're at it: we have project that require other permissions as well and might be good to allow. The full list is xr-spatial-tracking; accelerometer; gyroscope; display-capture; geolocation; camera; microphone

marwie avatar Feb 09 '24 16:02 marwie

We currently already support (plus others which are not on your list)

  • accelerometer
  • gyroscope
  • geolocation
  • camera
  • microphone
  • xr-spatial-tracking (new)

We don't yet have

  • display-capture

I'll see what I can do.

SamVerschueren avatar Feb 09 '24 17:02 SamVerschueren