tilfinltd / aws-extend-switch-roles

Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
https://chromewebstore.google.com/detail/aws-extend-switch-roles/jpmkfafbacpgapdghgdpembnojdlgkdl?utm_source=github
MIT License
1.32k stars 141 forks source link

csp issue with switchrole link #260

Closed N426ER closed 2 years ago

N426ER commented 2 years ago

When clicking on a role to switch to, the extension silently fails to respond. An inspection of the console shows there is a csp issue preventing the action:

Worth noting, there is a support post on the Chrome web store that demonstrates a similar issue with a different error message:

tilfin commented 2 years ago

This is because the AWS Management Console temporarily returns an incorrect CSP. With the Content Security Policy (form-action 'none'), the switch role history links in the AWS MC page would not work either. In any case, it cannot be handled by the extension.