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
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