Answer the question
In order to leave comments, you need to log in
What is the danger in dynamically linking a script?
Hello!
There is a javascript widget/module. It has an init() and a render() method.
For what? In init() I request json data from the server. In render() - show on the page.
What security issues might arise if I put a tag <script>
with a request for a polyfill in init(), because, let's say, only my module needs it?
upd. ok, XSS is possible. How to do this safely?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question