Refused to execute inline event handler in chrome extension

preview_player
Показать описание
problem : chrome extension
Refused to execute inline event handler because it violates the following
Content Security Policy directive: "script-src 'self' blob: filesystem:
chrome-extension-resource:"

link for some study related this:

if any problem like as cannot-read-property-addeventlistener-of-null generated then use this code :

I think the easiest approach would be to just check that el is not null before adding an event listener:

if(el){
}
Рекомендации по теме
Комментарии
Автор

Csp blocked inline execution of script and stylesheet . Could you please help me in

amankumar-ndck
Автор

arre gurudev aap, dhanya ho gye hm toh koti koti namaskar

gauravrajsinha
Автор

Can you give me link of the stackoverflow solution you showed in your video?

rubelrana
Автор

Very usefull information.
Thanks a lot

prem
welcome to shbcf.ru