The solution to this is to use the httpd module in Trigger.
Setting up the httpd server makes the app be served with a http://localhost
URL instead of the contents: or file: protocol. With this in place, whatever Chrome CSP issue was blocking the connection is lifted.
Module docs : https://trigger.io/modules/httpd/current/