Skip to content

Conversation

@calebporzio
Copy link
Collaborator

This PR provides a version of AlpineJS that is compatible with strict content security policies that would otherwise prevent the usage of Alpine because of "unsafe-eval" violations.

It removes the ability to evaluate JavaScript expressions inside HTML attributes; however, it maintains ALL functionality of Alpine otherwise.

All plugins and features are CSP-compatible when using this build.

@calebporzio calebporzio merged commit 8c1511a into main Jan 4, 2024
@calebporzio calebporzio deleted the add-csp-build branch January 4, 2024 20:06
@loicy
Copy link

loicy commented Mar 28, 2024

Hi,

After test of 3.13.5 & 3.13.7, It seems that without the use of unsafe-eval is still mandatory.

@ekwoka
Copy link
Contributor

ekwoka commented Mar 29, 2024

@loicy using @alpinejs/csp ? Just to be clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants