Skip to content

Conversation

@Maece97
Copy link
Contributor

@Maece97 Maece97 commented Mar 6, 2025

With Angular's autoCSP configuration enabled, the current inline event listener for ondragover (event.preventDefault()) triggers a CSP violation.

This PR replaces the inline event listener with an @HostListener('dragover') decorator to ensure compliance with CSP restrictions while maintaining expected behavior.

Copy link
Owner

@hackingharold hackingharold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@hackingharold hackingharold merged commit d4c84b1 into hackingharold:main Mar 7, 2025
2 checks passed
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.

2 participants