Open LeXXik opened 2 weeks ago
Where do you get this error?
Where do you get this error?
Windows Chrome? Maybe an iframe? Not sure what you are asking. Its a self-hosted environment. Noticed the error mentioned in our team and decided to add here. I can get the details if you clarify.
Repro: app.zip
npm install
node app.js
localhost:3000/printer
Additional details: https://www.w3.org/TR/permissions-policy-1/#document-policies
WebXR is allowed only in HTTPS.
That's the same requirement as WebGPU .. needs to be https. I'll close this but please reopen if this is still a problem.
Please, reopen. The issue is not about HTTPS protocol. The issue is that the engine is trying to use WebXR Device API on a webpage that does not allow it, resulting in a permissions violation exception.
Changed the repro app, added local certs so https can be used. app.zip
https://localhost:3000/printer
Is this really something for the engine to handle? If you're going to host a WebXR app, then you're going to have to correctly configure your server.
The exception is thrown for a default blank application. The engine is using WebXR Device API regardless if the app is going to use WebXR or not. We don't use WebXR in any of our games, but still noticed the exception.
Interesting. What's your take on this, @Maksims?
If the document doesn't allow to use WebXR Device API, then a DOM exception is thrown:
Details: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy/xr-spatial-tracking