Hello. I’m trying to use Alpine.js on Hanami, but I’m getting this error:
Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive
I’ve tried looking for solutions, but they seem to be old and say to disable security policies. What would be the safest solution to use Alpine.js (and probably Vue and other solutions that use eval)?
I actually plan on writing a blog post documenting how to setup a Vue + Hanami app in the next few weeks! I’ll follow up with a link to that when its done. hope this helps!