Deprecated: This extension is no longer maintained and will not receive further updates.
Extension settings
- Login to CometChat and select your app.
- Go to the Extensions section and enable the XSS Filter extension.
- Open up the Settings and choose to Drop messages with XSS Scripts.
How does it work?
Once the extension has been enabled from the Dashboard, recipients will receive metadata with the sanitized text. Here is a sample response:- JSON
Implementation
At the recipients’ end, from the message object, you can fetch the metadata by calling the getMetadata() method. Using this metadata, you can fetch the sanitized message.- JavaScript