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

CSP Compatibility Issue with SweetAlert2 on Firefox #3007

Open
krug91 opened this issue Jan 20, 2025 · 0 comments
Open

CSP Compatibility Issue with SweetAlert2 on Firefox #3007

krug91 opened this issue Jan 20, 2025 · 0 comments

Comments

@krug91
Copy link

krug91 commented Jan 20, 2025

SweetAlert2 causes issues with strict Content-Security-Policy (CSP) configurations when used in Firefox. Specifically, SweetAlert2 fails to function as intended due to its reliance on inline event handlers. Notably, this issue is observed in Firefox but not in Chromium-based browsers (e.g., Chrome, Edge). This discrepancy highlights a browser-specific enforcement of CSP rules.

Steps to reproduce the behavior:
Configure a web application to use the following CSP: Content-Security-Policy: script-src 'self';

Expected behavior
SweetAlert2 should work seamlessly across all modern browsers, including Firefox, without requiring any CSP policy adjustments that weaken the application's security posture.

Image

Firefox 134.0.1

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

No branches or pull requests

1 participant