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

Deploying a 3D website using three.js getting mime type and csp error react framework
https://62paw-dqaaa-aaaak-aeveq-cai.icp0.io

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

Thank you but I couldn’t understand what to do there

If you look into your .ic-assets.json5 file(s) you should see the content-security policy for your project. You can update it there, redeploy, and then it should work

hello thank you for your response, I am new to coding didn’t understand what to change I am trying to deploy a website I created.

Can you help me with this as well I have created a website and have it deployed on icp using GitHub - MioQuispe/create-ic-app: Use your favourite frontend framework with the Internet Computer starter template.
https://6gl2h-uqaaa-aaaak-aevgq-cai.icp0.io/
Canister link
GitHub - neel-icp/ic-vite-project repo link
I am getting these errors
index.567ec01f.js:6496 SyntaxError: Unexpected token ‘<’, "<!DOCTYPE "... is not valid JSON at JSON.parse ()
at jT.parse (index.567ec01f.js:6496:165748)
at Object.onLoad (index.567ec01f.js:6496:164892)
at index.567ec01f.js:6496:130861
Would greatly appreciate your help as I have been trying to get it to work for a long time

and this was the repo where I was getting mime type error GitHub - neel-icp/ic

I don’t have the time to debug your project for you, but I can give you some pointers

This sounds like you’re trying to parse an HTML file with a JSON parser or you’re using it in a place where JSON is expected

For the CSP error, while I don’t recommend it for production code, you can go to frontend/assets/.ic-assets.json5 and delete the line that starts with "Content-Security-Policy". If the website then works, you can start adding it back in part by part and read up on the options if you’d like to. Also please make sure that you’re using the latest version of dfx (use dfx upgrade if you’re unsure)