Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

The PocketBase UI should be XSS free no matter what the user submits.

We ensure this by serving a default Content Security Policy (CSP) and by minimize rendering untrusted raw HTML (we do render raw HTML as part of the TinyMCE preview but it is considered safe because it performs its own HTML sanitization and even if something manage to slip through it the CSP should catch it).

Regarding jsdom - jsdom already seems to be a CJS module but it won't work with the PocketBase pb_hooks because it relies on Node.js specific APIs such as path, fs, vm, etc. You can try searching for an alternative pure JS library but I would advice against it because usually html sanitization libraries are very co…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jackyscript
Comment options

@ganigeorgiev
Comment options

@jackyscript
Comment options

@jackyscript
Comment options

Answer selected by jackyscript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants