Skip to content
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 is not allowed in this document. #662

Open
2 tasks done
MikhailP97 opened this issue Apr 10, 2024 · 2 comments
Open
2 tasks done

Comments

@MikhailP97
Copy link

MikhailP97 commented Apr 10, 2024

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

@matteodepalo
Copy link
Contributor

Hi @MickaPel thank you for reporting this, we'll take a look 👍

@MikhailP97
Copy link
Author

Hello @matteodepalo, do you have any news about this problem ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants