Describe the feature / bug 📝:
Sonner does not work with strict CSPs as there's inline styles.
Steps to reproduce the bug 🔁:
- Use any CSP with the
style-src directive set to anything other than unsafe-inline.
I'm looking into some fixes, but in essence all styles have to be defined in stylesheets for other CSPs to work. If it's impractical to apply a fix, there's always the fork and modify path but having support baked in would be nice.
Describe the feature / bug 📝:
Sonner does not work with strict CSPs as there's inline styles.
Steps to reproduce the bug 🔁:
style-srcdirective set to anything other thanunsafe-inline.I'm looking into some fixes, but in essence all styles have to be defined in stylesheets for other CSPs to work. If it's impractical to apply a fix, there's always the fork and modify path but having support baked in would be nice.