0👍
✅
For reference, the issue was that my CSP didn’t allow for unsafe-eval
, which is required in this scenario without a build step. I didn’t notice this until I included vue.js
instead of the minified vue.min.js
, which doesn’t show errors.
To fix this for now, I did the following, though you should probably not do this in production: Check where your CSP is defined and add 'unsafe-eval'
to "script-src"
.
In production, you probably want to use nonce
on the script instead of unsafe-eval
and something like https://github.com/spatie/laravel-csp to generate the nonce
.
Source:stackexchange.com