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

Possible xss #1

Open
MatissesProjects opened this issue Dec 7, 2023 · 0 comments
Open

Possible xss #1

MatissesProjects opened this issue Dec 7, 2023 · 0 comments

Comments

@MatissesProjects
Copy link

https://github.com/kristianfreeman/cloudflare-ai-example/blob/d2d538fefa0e09d845b5f226a40d10d48a6e7384/src/template.html#L87C48-L87C58

This might be better as a .innerText as that strips the ability to do a xss

https://stackoverflow.com/questions/30661497/xss-prevention-and-innerhtml

however as an example it probably doesnt matter

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