Trouble Adding 3D Models with Three.js in Chrome Extension: Content Security Policy Inline Script Error
I’m developing an educational Chrome extension for kids that uses an AI API to assist with specific study topics by answering their questions. To enhance the experience, I plan to add a cute 3D robot model. However, I’m encountering errors related to Content Security Policy restrictions, which prevent the execution of inline scripts.
image show errors I’m facing
If you see in the image it works well as web page but it gives me this errors when opening as extension
Small note I mentioned that it’s not critical but I really think kids may like it 😁