Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • stackoverflow.com/a/35462561/759749 demonstrates a work around where you need to create a script object and copy the script into it to get the script to execute. Since the answer is circa 2016 I expect this has been a long standing attempt to make the browsers support more resilience towards XSS. Useful for anyone hoping to add a script by ajax call, even if that's a highly unusual/risky use case. Commented Aug 28, 2023 at 3:21