Skip to content

Permissions policy violation: xr-spatial-tracking is not allowed in this document. #662

Open
@MikhailP97

Description

Issue summary

I added package to my project but when i add "ar" (augmented reality) attribute to the element, an error in the console says me that the the xr-spatial-tracking directive is missing from the Permission-Policy header. I tried to add this header in entry.server file but it doesn't work. I read that it is impossible to set this header in an iframe (google chrome doc) appart from directly add "allow" attribute.

So I have a question, is there a way to add this permission in app's iframe or not ?

Before opening this issue, I have:

Expected behavior

When click on ar button of model-viewer, it opens the ar viewer.

Actual behavior

Capture d’écran 2024-04-10 152723

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions