To use Canvas in SecurityMode 5 you just have to add “camNamespaces” to instances.json, e.g.:
And just to add, the above should be the only parameter you need to add into your instances.json file if you do not need SSO.
do not need SSO
For CAM with SSO, check this article out.