Добавьте исходный код вашего скрипта в настройку content security policy script src.
content security policy script src