The below tag is working now for me
<add name="Content-Security-Policy" value= "script-src 'unsafe-inline' 'unsafe-eval' https://example.com; style-src 'self' 'unsafe-inline'" />
Now there is no error in Mozilla or Chrome. The page is rendering properly as the CSS and JS is loading properly in asp pages.