Deploying a 3D website using three.js getting mime type and csp error react framework

Is it a new project with a recent dfx version? If yes, probably the same issue / solution as React frontend: Setting content-security-policy in the index.html doesn't seem to do anything? - #2 by peterparker