Reputation: 49
I have my CSP added as below in my code
res.header('Content-Security-Policy',
"default-src 'self' ; style-src 'self' '<hashvalue>';" +
"script-src 'self' '<hashvalue>';" +
"font-src 'self' data: fonts.gstatic.com;" +
"img-src 'self';" +
"frame-src 'self'; " +
"object-src 'none';" +
"frame-ancestors 'none';"+
"connect-src 'none';"
);
After adding this my UI does not load on Firefox
And even though I have set this CSP I get Appscan issue for CSP as
'AppScan detected that the Content-Security-Policy response header is missing or with an insecure policy, which increases exposure to various cross-site injection attacks'
Your help is highly appreciated!
Thanks in advance!
Upvotes: 1
Views: 2446