-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Permissions policy violation: xr-spatial-tracking #6692
Comments
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:
Additional details: |
WebXR is allowed only in HTTPS. |
That's the same requirement as WebGPU .. needs to be https. |
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.
|
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? |
I get the same error twice. I'm embedding my viewer project with an iframe into a simple website. Everything https, no WebXR app: |
Try adding these attributes to your iframes: |
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
The text was updated successfully, but these errors were encountered: