In Manifest V5, the requiredPermissions property is used to allow network connections.
As it stands, it would appear that ‘domains’ property only functions with “all” as its value, and any form of array fails to be parsed. I cannot find any documentation on proper string formatting to get an array to be parsed properly.
End Goal: use websocket to connect to a port on localhost or 127.0.0.1
Invalid Setups (produce a ‘Permission Denied, Manifest Entry Not Found’ error):
"requiredPermissions": {
"network": {
"domains": ["all"]
},
"requiredPermissions": {
"network": {
"domains": ["127.0.0.1"]
},
"requiredPermissions": {
"network": {
"domains": ["127.0.0.1:8001"]
},
"requiredPermissions": {
"network": {
"domains": ["//127.0.0.1:8001/"]
},
"requiredPermissions": {
"network": {
"domains": ["ws://127.0.0.1:8001/"]
},
"requiredPermissions": {
"network": {
"domains": ["localhost"]
},
and so on...
Valid Setup
"requiredPermissions": {
"network": {
"domains": "all"
},