I have a website that contains a block where AJAX-loaded code is coming from a remote server. How can I prevent potentially harmful code from executing, especially when it originates from a remote source? Is using the "noscript" tag sufficient to protect against this risk?
I believe it's important not to overlook scenarios in which code like
</noscript><script>...</script>
may be present.
Thank you for your help!