-2

how to prevent this situation where we are providing the header as a javascript and when it will display in frontend it will execute the script mentioned. so how to handle this type of situation.

1

1 Answer 1

0

You should HtmlEncode the content before sending it to the client.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.