Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid CSP violations when reloading stimulus controllers #51

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

jorgemanrubia
Copy link
Member

@jorgemanrubia jorgemanrubia commented Dec 26, 2024

This restores the old mechanism to reload Stimulus controllers, which doesn't require CSP permissions for JS execution.

It also incorporates a fix for the problem that Andrey Maslov detected in #49: it wills support namespaced stimulus controllers.

Fixes #50

Closes #49

Pending:

  • Add test for nested stimulus controllers

This won't cause trouble with CSP policies.

Fixes #50

Closes #49

It incorporates a fix for the problem that Andrey Maslov detected in #49: it wills support namespaced stimulus controllers.

Co-authored-by: Andrey Maslov <[email protected]>
@jorgemanrubia jorgemanrubia merged commit d823e62 into main Dec 26, 2024
2 checks passed
@jorgemanrubia jorgemanrubia changed the title Restore mechanism based on parsing import maps Avoid CSP violations when reloading stimulus controllers Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

New approach to reload javascripts doesn't play well with CSP
1 participant