Permissions policy violation: xr-spatial-tracking is not allowed in this document. #662
Open
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:
- Looked for similar issues in this repository
- Checked that this isn't an issue with a Shopify API
- If it is, please create a post in the Shopify community forums or report it to Shopify Partner Support
Expected behavior
When click on ar button of model-viewer, it opens the ar viewer.