I've been working on adding CSP to my portfolio and have already removed all inline styles, but I'm still encountering CSP errors. I am using SCSS which compiles into my main.css file, and then I import this main.css file in my index.js file. This is my first time trying out CSP, and despite reading through numerous Stack Overflow questions, nothing seems to be resolving the issue.
Here is the meta tag for my CSP:
<meta http-equiv="Content-Security-Policy" content="
default-src 'self';
img-src 'self' https://deploy-preview-12--sensational-bienenstitch-4b09b2.netlify.app;
frame-src https://app.netlify.com/;
font-src fonts.gstatic.com https://cdnjs.cloudflare.com;
style-src 'self' fonts.googleapis.com https://cdnjs.cloudflare.com ;
script-src 'self' https://netlify-cdp-loader.netlify.app ;
connect-src 'self' https://cdnjs.cloudflare.com;">
I am deploying my app using Netlify, and I have also included Google Fonts and Font Awesome. The error message specifies an issue on line number 22, but the code present on that line -
background-color: var(--main-bg);
doesn't seem to be the cause.
Upon expanding a triangle, I found these images: https://i.sstatic.net/fgyfs.png