candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Support a more restrictive Content-Security-Policy #489

Open linkmauve opened 7 years ago

linkmauve commented 7 years ago

When CSP is enabled, Candy is unable to function properly.

The most obvious issues are the presence of the onsubmit, onchange, etc. attributes. The example.html file also ships some inline script which should be disallowed.

CSP is very important for a client like Candy since it provides an additional security against attackers embedding scripts or styles in their payloads.