R2 render the html page and trigger xss

I run a service where users can upload any files and share them with others. Recently, I noticed that when users upload an HTML file containing a script tag, it triggers an XSS (Cross-Site Scripting) vulnerability when others visit that location. What measures can I take to prevent XSS attacks in this scenario?
1 Reply
James
JamesOP5mo ago
ohk thx is there any example for csp rule thx
Want results from more Discord servers?
Add your server