O someone ELI5 and point me in the direction of a fix because I'm lost AF? Uncaught EvalError: call to Function() blocked by CSP $this->addDirective(Directive::SCRIPT, html: Īlpine Expression Error: call to Function() blocked by CSPĬontent Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). I add the inline script that I want covered to the CustomPolicy.php: class CustomPolicy extends Basic I modify config/csp.php 'policy' => App\Support\Csp\Policies\CustomPolicy::class, I've also consulted the spatie/laravel-csp github page and the the referenced Laraning video I'm using Laravel 9 and trying to use spatie/laravel-csp by following the guide on Laravel News.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |