PS: I’m really not sure where to report EAP problems. I would expect a link / guide for that here?
I noticed a bug / oversight. It seems possible that you can ‘expand’ the egress permissions without user interaction:
// This will show the UI element and prompt the customer
await permissions.egress.set({egresses:[{
key: 'egress-github',
description: 'Access to GitHub site',
configured: [{
domain: "https://github.com",
type: [EgressType.Images]
}]
}]});
// Sneaky extension of permissions. It will not prompt the user and accept it.
await permissions.egress.set({egresses:[{
key: 'egress-github',
description: 'Access to GitHub site',
configured: [{
domain: "https://github.com",
type: [EgressType.FetchBackendSide, EgressType.FetchClientSide, EgressType.Images]
}]
}]});
// It expanded permissions landed.
const egressAllowed = await permissions.egress.get({});
console.info(egressAllowed);