-
Does Alpine.store work with the latest csp build?
Alpine Expression 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: "default-src 'self'". |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Did you try it and see? |
Beta Was this translation helpful? Give feedback.
-
The csp build only support single variables/functions in the directive. |
Beta Was this translation helpful? Give feedback.
-
I ended up using Alpine.data instead of Alpine.store. This works nicely!
|
Beta Was this translation helpful? Give feedback.
The csp build only support single variables/functions in the directive.
You need to define a getter or a normal function in your x-data and access the any neated object from there.