How to configure a permissions policy to provide browser feature access to your Tecton extensions.
By default, Tecton will allow <iframe> elements to utilize the camera and the geolocation Javascript APIs.
Browsers require capabilities to be explicitly granted to the <iframe>. If capabilities beyond camera and geolocation are needed, then they will need to be added to the Tecton config under allowDirectives.
{
"MyBasicExtension": {
"core": false,
"allowDirectives": [
"accelerometer"
],
"modules": {
"Main": {
"url": "http://www.myextension.com/main.html",
"meta": {
"type": {
"shape": "Content",
"context": "None"
}
}
}
}
}
}